F
Filament12mo 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
makmakOP12mo ago
@awcodes if you please
awcodes
awcodes12mo 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
makmakOP12mo 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
awcodes12mo ago
Not sure. Sorry. That code works on my sites.

Did you find this page helpful?