|
@@ -4,7 +4,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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); |
|
@@ -59,13 +59,13 @@ discard block |
|
|
block discarded – undo |
|
59
|
59
|
->middleware('dynamicAcl') |
|
60
|
60
|
->name('translation'); |
|
61
|
61
|
|
|
62
|
|
-Route::prefix('role')->middleware('dynamicAcl')->name('role.')->group(function (){ |
|
|
62
|
+Route::prefix('role')->middleware('dynamicAcl')->name('role.')->group(function() { |
|
63
|
63
|
Route::get('/', \EasyPanel\Http\Livewire\Role\Lists::class)->name('lists'); |
|
64
|
64
|
Route::get('/create', \EasyPanel\Http\Livewire\Role\Create::class)->name('create'); |
|
65
|
65
|
Route::get('/update/{role}', \EasyPanel\Http\Livewire\Role\Update::class)->name('update'); |
|
66
|
66
|
}); |
|
67
|
67
|
|
|
68
|
|
-Route::prefix('admins')->middleware('dynamicAcl')->name('admins.')->group(function (){ |
|
|
68
|
+Route::prefix('admins')->middleware('dynamicAcl')->name('admins.')->group(function() { |
|
69
|
69
|
Route::get('/', \EasyPanel\Http\Livewire\Admins\Lists::class)->name('lists'); |
|
70
|
70
|
// Route::get('/create', \EasyPanel\Http\Livewire\Admins\Create::class)->name('create'); |
|
71
|
71
|
Route::get('/update/{admin}', \EasyPanel\Http\Livewire\Admins\Update::class)->name('update'); |