Conditions | 2 |
Paths | 2 |
Total Lines | 26 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 18 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
11 | 1 | public function boot() |
|
12 | { |
||
13 | 1 | $this->publishes([ |
|
14 | 1 | __DIR__.'/../resources/assets/sass' => resource_path('sass/vendor/laravel-responsive-gallery/'), |
|
15 | 1 | ], 'sass'); |
|
16 | 1 | $this->publishes([ |
|
17 | 1 | __DIR__.'/../resources/assets/js' => resource_path('js/vendor/laravel-responsive-gallery/'), |
|
18 | 1 | ], 'js'); |
|
19 | |||
20 | 1 | $this->publishes([ |
|
21 | 1 | __DIR__.'/../config/responsive-gallery.php' => base_path('config/responsive-gallery.php'), |
|
22 | 1 | ], 'config'); |
|
23 | |||
24 | 1 | if (! class_exists('CreateGalleryImagesTable')) { |
|
25 | 1 | $this->publishes([ |
|
26 | 1 | __DIR__.'/../database/migrations/create_gallery_images_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_gallery_images_table.php'), |
|
27 | 1 | ], 'migrations'); |
|
28 | } |
||
29 | |||
30 | 1 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-responsive-gallery'); |
|
31 | 1 | $this->publishes([ |
|
32 | 1 | __DIR__.'/../resources/views' => resource_path('views/vendor/laravel-responsive-gallery/'), |
|
33 | ]); |
||
34 | |||
35 | Route::group(['middleware' => 'web'], function () { |
||
36 | 1 | Route::resource('responsive-gallery', ResponsiveGalleryController::class); |
|
37 | 1 | }); |
|
49 |