Archived
feat: admin middleware and route cleanup
This commit is contained in:
1 parent
d49c43f209
commit
e3f0f10d5d
3 files changed
+25
-9
No files matched your search
+10
-9
@@ -17,17 +17,18 @@ use Livewire\Volt\Volt;
|
||||
Route::view('/', 'home')
|
||||
->name('home');
|
||||
|
||||
Route::view('dashboard', 'dashboard')
|
||||
->middleware(['auth'])
|
||||
->name('dashboard');
|
||||
Route::middleware(['auth'])->group(function() {
|
||||
Route::view('dashboard', 'dashboard')
|
||||
->name('dashboard');
|
||||
|
||||
Route::view('profile', 'profile')
|
||||
->middleware(['auth'])
|
||||
->name('profile');
|
||||
Route::view('profile', 'profile')
|
||||
->name('profile');
|
||||
|
||||
Route::view('send', 'admin.send')
|
||||
->middleware(['auth'])
|
||||
->name('admin.send');
|
||||
Route::middleware('auth.admin')->prefix('admin')->group(function () {
|
||||
Route::view('send', 'admin.send')
|
||||
->name('admin.send');
|
||||
});
|
||||
});
|
||||
|
||||
Route::middleware('guest')->group(function () {
|
||||
Volt::route('login', 'pages.auth.login')
|
||||
|
||||
Reference in new issue
Block a user