FilamentF
Filament17mo 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');
      });
});

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!
Was this page helpful?