@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | 'use_package_routes' => true, |
19 | 19 | |
20 | 20 | //Middlewares to be applied to default routes when use_package_routes is true |
21 | - 'middlewares' => ['web','auth'], |
|
21 | + 'middlewares' => [ 'web', 'auth' ], |
|
22 | 22 | |
23 | 23 | //The url prefix to this package. |
24 | 24 | 'url_prefix' => 'filemanager', |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | 'over_write_on_duplicate' => false, |
117 | 117 | |
118 | 118 | // Item Columns |
119 | - 'item_columns' => ['name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url'], |
|
119 | + 'item_columns' => [ 'name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url' ], |
|
120 | 120 | |
121 | 121 | /* |
122 | 122 | |-------------------------------------------------------------------------- |
@@ -17,28 +17,28 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function boot() |
19 | 19 | { |
20 | - $this->loadTranslationsFrom(__DIR__.'/lang', 'laravel-filemanager'); |
|
20 | + $this->loadTranslationsFrom(__DIR__ . '/lang', 'laravel-filemanager'); |
|
21 | 21 | |
22 | - $this->loadViewsFrom(__DIR__.'/views', 'laravel-filemanager'); |
|
22 | + $this->loadViewsFrom(__DIR__ . '/views', 'laravel-filemanager'); |
|
23 | 23 | |
24 | 24 | $this->publishes([ |
25 | 25 | __DIR__ . '/config/lfm.php' => base_path('config/lfm.php'), |
26 | 26 | ], 'lfm_config'); |
27 | 27 | |
28 | 28 | $this->publishes([ |
29 | - __DIR__.'/../public' => public_path('vendor/laravel-filemanager'), |
|
29 | + __DIR__ . '/../public' => public_path('vendor/laravel-filemanager'), |
|
30 | 30 | ], 'lfm_public'); |
31 | 31 | |
32 | 32 | $this->publishes([ |
33 | - __DIR__.'/views' => base_path('resources/views/vendor/laravel-filemanager'), |
|
33 | + __DIR__ . '/views' => base_path('resources/views/vendor/laravel-filemanager'), |
|
34 | 34 | ], 'lfm_view'); |
35 | 35 | |
36 | 36 | $this->publishes([ |
37 | - __DIR__.'/Handlers/LfmConfigHandler.php' => base_path('app/Handlers/LfmConfigHandler.php'), |
|
37 | + __DIR__ . '/Handlers/LfmConfigHandler.php' => base_path('app/Handlers/LfmConfigHandler.php'), |
|
38 | 38 | ], 'lfm_handler'); |
39 | 39 | |
40 | 40 | if (config('lfm.use_package_routes')) { |
41 | - Route::group(['prefix' => config('lfm.url_prefix') ?: 'filemanager', 'middleware' => config('lfm.middlewares') ?: ['web', 'auth']], function () { |
|
41 | + Route::group([ 'prefix' => config('lfm.url_prefix') ?: 'filemanager', 'middleware' => config('lfm.middlewares') ?: [ 'web', 'auth' ] ], function() { |
|
42 | 42 | \UniSharp\LaravelFilemanager\Lfm::routes(); |
43 | 43 | }); |
44 | 44 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | $this->mergeConfigFrom(__DIR__ . '/config/lfm.php', 'lfm-config'); |
55 | 55 | |
56 | - $this->app->singleton('laravel-filemanager', function () { |
|
56 | + $this->app->singleton('laravel-filemanager', function() { |
|
57 | 57 | return true; |
58 | 58 | }); |
59 | 59 | } |