@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | Route::view('/', "admin::home")->name('home'); |
| 6 | 6 | |
| 7 | -Route::post('/logout', function (){ |
|
| 7 | +Route::post('/logout', function() { |
|
| 8 | 8 | auth()->logout(); |
| 9 | 9 | return redirect(config('easy_panel.redirect_unauthorized')); |
| 10 | 10 | })->name('logout'); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $middleware[] = "authorize"; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - Route::prefix($crud->route)->middleware($middleware)->name("{$crud->route}.")->group(function () use ($component, $crud, $crudConfig) { |
|
| 26 | + Route::prefix($crud->route)->middleware($middleware)->name("{$crud->route}.")->group(function() use ($component, $crud, $crudConfig) { |
|
| 27 | 27 | |
| 28 | 28 | if (@class_exists("$component\\Read")) { |
| 29 | 29 | Route::get('/', "$component\\Read")->name('read'); |
@@ -34,19 +34,19 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | if (@$crudConfig->update and @class_exists("$component\\Update")) { |
| 37 | - Route::get('/update/{' . $crud->name . '}', "$component\\Update")->name('update'); |
|
| 37 | + Route::get('/update/{'.$crud->name.'}', "$component\\Update")->name('update'); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | }); |
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | -Route::prefix('crud')->middleware('dynamicAcl')->name('crud.')->group(function (){ |
|
| 44 | +Route::prefix('crud')->middleware('dynamicAcl')->name('crud.')->group(function() { |
|
| 45 | 45 | Route::get('/', \EasyPanel\Http\Livewire\CRUD\Lists::class)->name('lists'); |
| 46 | 46 | Route::get('/create', \EasyPanel\Http\Livewire\CRUD\Create::class)->name('create'); |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | -Route::get('setLang', function (){ |
|
| 49 | +Route::get('setLang', function() { |
|
| 50 | 50 | $lang = request()->get('lang'); |
| 51 | 51 | |
| 52 | 52 | session()->put('easypanel_lang', $lang); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | return redirect()->back(); |
| 56 | 56 | })->name('setLang'); |
| 57 | 57 | |
| 58 | -Route::get('setTheme', function (){ |
|
| 58 | +Route::get('setTheme', function() { |
|
| 59 | 59 | $theme = request()->get('theme'); |
| 60 | 60 | session()->put('easypanel_theme', $theme); |
| 61 | 61 | |
@@ -66,13 +66,13 @@ discard block |
||
| 66 | 66 | ->middleware('dynamicAcl') |
| 67 | 67 | ->name('translation'); |
| 68 | 68 | |
| 69 | -Route::prefix('role')->middleware('dynamicAcl')->name('role.')->group(function (){ |
|
| 69 | +Route::prefix('role')->middleware('dynamicAcl')->name('role.')->group(function() { |
|
| 70 | 70 | Route::get('/', \EasyPanel\Http\Livewire\Role\Lists::class)->name('lists'); |
| 71 | 71 | Route::get('/create', \EasyPanel\Http\Livewire\Role\Create::class)->name('create'); |
| 72 | 72 | Route::get('/update/{role}', \EasyPanel\Http\Livewire\Role\Update::class)->name('update'); |
| 73 | 73 | }); |
| 74 | 74 | |
| 75 | -Route::prefix('admins')->middleware('dynamicAcl')->name('admins.')->group(function (){ |
|
| 75 | +Route::prefix('admins')->middleware('dynamicAcl')->name('admins.')->group(function() { |
|
| 76 | 76 | Route::get('/', \EasyPanel\Http\Livewire\Admins\Lists::class)->name('lists'); |
| 77 | 77 | // Route::get('/create', \EasyPanel\Http\Livewire\Admins\Create::class)->name('create'); |
| 78 | 78 | Route::get('/update/{admin}', \EasyPanel\Http\Livewire\Admins\Update::class)->name('update'); |