@@ -6,32 +6,32 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ChartServiceProvider extends ServiceProvider{ |
| 8 | 8 | |
| 9 | - /** |
|
| 10 | - * Indicates if loading of the provider is deferred. |
|
| 11 | - * |
|
| 12 | - * @var bool |
|
| 13 | - */ |
|
| 14 | - protected $defer = false; |
|
| 15 | - |
|
| 16 | - public function boot() |
|
| 17 | - { |
|
| 18 | - $this->publishesConfig(); |
|
| 19 | - } |
|
| 20 | - |
|
| 21 | - public function register() |
|
| 22 | - { |
|
| 23 | - $this->app->bind('chart', function($app) { |
|
| 24 | - |
|
| 25 | - $config = config('charts'); |
|
| 26 | - |
|
| 27 | - return new Chart($config); |
|
| 28 | - }); |
|
| 29 | - } |
|
| 30 | - |
|
| 31 | - protected function publishesConfig() |
|
| 32 | - { |
|
| 33 | - $this->publishes([ |
|
| 34 | - __DIR__.'/Config/charts.php' => config_path('charts.php'), |
|
| 35 | - ]); |
|
| 36 | - } |
|
| 9 | + /** |
|
| 10 | + * Indicates if loading of the provider is deferred. |
|
| 11 | + * |
|
| 12 | + * @var bool |
|
| 13 | + */ |
|
| 14 | + protected $defer = false; |
|
| 15 | + |
|
| 16 | + public function boot() |
|
| 17 | + { |
|
| 18 | + $this->publishesConfig(); |
|
| 19 | + } |
|
| 20 | + |
|
| 21 | + public function register() |
|
| 22 | + { |
|
| 23 | + $this->app->bind('chart', function($app) { |
|
| 24 | + |
|
| 25 | + $config = config('charts'); |
|
| 26 | + |
|
| 27 | + return new Chart($config); |
|
| 28 | + }); |
|
| 29 | + } |
|
| 30 | + |
|
| 31 | + protected function publishesConfig() |
|
| 32 | + { |
|
| 33 | + $this->publishes([ |
|
| 34 | + __DIR__.'/Config/charts.php' => config_path('charts.php'), |
|
| 35 | + ]); |
|
| 36 | + } |
|
| 37 | 37 | } |
| 38 | 38 | \ No newline at end of file |