1 | <?php |
||
21 | class BlogServiceProvider extends ServiceProvider |
||
22 | { |
||
23 | use CanPublishConfiguration; |
||
24 | /** |
||
25 | * Indicates if loading of the provider is deferred. |
||
26 | * |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $defer = false; |
||
30 | |||
31 | /** |
||
32 | * Register the service provider. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | 2 | public function register() |
|
40 | |||
41 | 2 | public function boot() |
|
42 | { |
||
43 | 2 | $this->publishes([ |
|
44 | 2 | __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/blog'), |
|
45 | 2 | ]); |
|
46 | |||
47 | 2 | $this->publishConfig('blog', 'config'); |
|
48 | 2 | $this->publishConfig('blog', 'permissions'); |
|
49 | 2 | $this->publishConfig('blog', 'settings'); |
|
50 | 2 | $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); |
|
51 | |||
52 | 2 | $this->registerThumbnails(); |
|
53 | 2 | } |
|
54 | |||
55 | /** |
||
56 | * Get the services provided by the provider. |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | public function provides() |
||
61 | { |
||
62 | return array(); |
||
63 | } |
||
64 | |||
65 | 2 | private function registerBindings() |
|
97 | |||
98 | 2 | private function registerThumbnails() |
|
99 | { |
||
110 | } |
||
111 |