@@ -37,10 +37,10 @@ discard block |
||
| 37 | 37 | public function register() |
| 38 | 38 | { |
| 39 | 39 | // Here we merge config with 'easy_panel' key |
| 40 | - $this->mergeConfigFrom(__DIR__ . '/../config/easy_panel_config.php', 'easy_panel'); |
|
| 40 | + $this->mergeConfigFrom(__DIR__.'/../config/easy_panel_config.php', 'easy_panel'); |
|
| 41 | 41 | |
| 42 | 42 | // Check the status of module |
| 43 | - if(!config('easy_panel.enable')) { |
|
| 43 | + if (!config('easy_panel.enable')) { |
|
| 44 | 44 | return; |
| 45 | 45 | } |
| 46 | 46 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | public function boot() |
| 52 | 52 | { |
| 53 | - if(!config('easy_panel.enable')) { |
|
| 53 | + if (!config('easy_panel.enable')) { |
|
| 54 | 54 | return; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | // Load Views with 'admin::' prefix |
| 67 | - $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin'); |
|
| 67 | + $this->loadViewsFrom(__DIR__.'/../resources/views', 'admin'); |
|
| 68 | 68 | |
| 69 | 69 | // Register Middleware |
| 70 | 70 | $this->registerMiddlewareAlias(); |
@@ -78,11 +78,11 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | private function defineRoutes() |
| 80 | 80 | { |
| 81 | - if(!$this->app->routesAreCached()) { |
|
| 81 | + if (!$this->app->routesAreCached()) { |
|
| 82 | 82 | Route::prefix(config('easy_panel.route_prefix')) |
| 83 | 83 | ->middleware(['web', 'isAdmin', 'LangChanger']) |
| 84 | - ->name(getRouteName() . '.') |
|
| 85 | - ->group(__DIR__ . '/routes.php'); |
|
| 84 | + ->name(getRouteName().'.') |
|
| 85 | + ->group(__DIR__.'/routes.php'); |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
@@ -108,13 +108,13 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | private function mergePublishes() |
| 110 | 110 | { |
| 111 | - $this->publishes([__DIR__ . '/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config'); |
|
| 111 | + $this->publishes([__DIR__.'/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config'); |
|
| 112 | 112 | |
| 113 | - $this->publishes([__DIR__ . '/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views'); |
|
| 113 | + $this->publishes([__DIR__.'/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views'); |
|
| 114 | 114 | |
| 115 | - $this->publishes([__DIR__ . '/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles'); |
|
| 115 | + $this->publishes([__DIR__.'/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles'); |
|
| 116 | 116 | |
| 117 | - $this->publishes([__DIR__ . '/../database/migrations/2020_09_05_99999_create_todos_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_99999_create_admin_todos_table.php')], 'easy-panel-migrations'); |
|
| 117 | + $this->publishes([__DIR__.'/../database/migrations/2020_09_05_99999_create_todos_table.php' => base_path('/database/migrations/'.date('Y_m_d').'_99999_create_admin_todos_table.php')], 'easy-panel-migrations'); |
|
| 118 | 118 | |
| 119 | 119 | $this->publishes([__DIR__.'/../resources/lang' => resource_path('/lang')], 'easy-panel-lang'); |
| 120 | 120 | |