F
Filament5mo ago
rajul

filament panel authentication middleware

I have two panels : admin and dashboard. I want to add filament panel auth middleware to certain routes . currently I am using like this :
Route::middleware(Filament::getPanel('dashboard')->getAuthGuard())->group(function () {
Route::get('/page1', function () {
return view('page');
});
});
Route::middleware(Filament::getPanel('dashboard')->getAuthGuard())->group(function () {
Route::get('/page1', function () {
return view('page');
});
});
But it is redirecting to admin login page instead of dashboard login page? Is there a way to force it to redirect to dash login in case of user is unauthenticated. Thank you!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server