F
Filament10mo ago
makmak

Route Problem

I can't create another panel because it will always be Route [student.login] not defined. then I tried to create resouce and I got Route [filament.admin.resources.colleges.index] not defined.
4 Replies
makmak
makmakOP10mo ago
@awcodes if you please
awcodes
awcodes10mo ago
try adding this to your web.php file
foreach (filament()->getPanels() as $panel) {
Route::redirect('/login', $panel->getPath() . '/login')->name('login');
}
foreach (filament()->getPanels() as $panel) {
Route::redirect('/login', $panel->getPath() . '/login')->name('login');
}
makmak
makmakOP10mo ago
It will go to login url but it will be 404 NOT FOUND I can go to student dashboard (new panel) If I already log in in the admin, I just change the current url from admin to student Hope this information can help to solve this
awcodes
awcodes10mo ago
Not sure. Sorry. That code works on my sites.
Want results from more Discord servers?
Add your server