@@ -8,8 +8,8 @@ |
||
8 | 8 | public function handle($name, $values, $action) |
9 | 9 | { |
10 | 10 | return "<select wire:model='$name' class=\"form-control @error('$name') is-invalid @enderror\" id='input$name'> |
11 | - @foreach(config('easy_panel.crud.$action.fields.$name')['select'] as " . '$key => $value' . ") |
|
12 | - <option value='{{ " . '$key' . " }}'>{{ " . '$value' . " }}</option> |
|
11 | + @foreach(config('easy_panel.crud.$action.fields.$name')['select'] as ".'$key => $value'.") |
|
12 | + <option value='{{ " . '$key'." }}'>{{ ".'$value'." }}</option> |
|
13 | 13 | @endforeach |
14 | 14 | </select>"; |
15 | 15 | } |
@@ -34,10 +34,10 @@ discard block |
||
34 | 34 | public function register() |
35 | 35 | { |
36 | 36 | // Here we merge config with 'easy_panel' key |
37 | - $this->mergeConfigFrom(__DIR__ . '/../config/easy_panel_config.php', 'easy_panel'); |
|
37 | + $this->mergeConfigFrom(__DIR__.'/../config/easy_panel_config.php', 'easy_panel'); |
|
38 | 38 | |
39 | 39 | // Check the status of module |
40 | - if(!config('easy_panel.enable')) { |
|
40 | + if (!config('easy_panel.enable')) { |
|
41 | 41 | return; |
42 | 42 | } |
43 | 43 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | public function boot() |
49 | 49 | { |
50 | - if(!config('easy_panel.enable')) { |
|
50 | + if (!config('easy_panel.enable')) { |
|
51 | 51 | return; |
52 | 52 | } |
53 | 53 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | // Load Views with 'admin::' prefix |
64 | - $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin'); |
|
64 | + $this->loadViewsFrom(__DIR__.'/../resources/views', 'admin'); |
|
65 | 65 | |
66 | 66 | // Register Middleware |
67 | 67 | $this->registerMiddlewareAlias(); |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | |
76 | 76 | private function defineRoutes() |
77 | 77 | { |
78 | - if(!$this->app->routesAreCached()) { |
|
78 | + if (!$this->app->routesAreCached()) { |
|
79 | 79 | Route::prefix(config('easy_panel.route_prefix')) |
80 | 80 | ->middleware(['web', 'auth', 'isAdmin', 'LangChanger']) |
81 | - ->name(getRouteName() . '.') |
|
82 | - ->group(__DIR__ . '/routes.php'); |
|
81 | + ->name(getRouteName().'.') |
|
82 | + ->group(__DIR__.'/routes.php'); |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | |
@@ -105,13 +105,13 @@ discard block |
||
105 | 105 | |
106 | 106 | private function mergePublishes() |
107 | 107 | { |
108 | - $this->publishes([__DIR__ . '/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config'); |
|
108 | + $this->publishes([__DIR__.'/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config'); |
|
109 | 109 | |
110 | - $this->publishes([__DIR__ . '/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views'); |
|
110 | + $this->publishes([__DIR__.'/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views'); |
|
111 | 111 | |
112 | - $this->publishes([__DIR__ . '/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles'); |
|
112 | + $this->publishes([__DIR__.'/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles'); |
|
113 | 113 | |
114 | - $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'); |
|
114 | + $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'); |
|
115 | 115 | |
116 | 116 | $this->publishes([__DIR__.'/../resources/lang' => resource_path('/lang')], 'easy-panel-lang'); |
117 | 117 | } |