Questions regarding the use of 2 filament panels and redirections.

Hi, I'm starting to test with Filament, and I'm trying to make 2 panels (admin and app), it turns out that the admin, is the default of filament, it's working fine. But I have some doubts about the app. The first one is about redirection, when accessing http://panel/app everything works fine, but when removing /app I have a not found problem, doesn't filament give me something to automatically redirect to /app? At the moment I've solved this by just adding this to my web.php.
Route::redirect('/', 'app')->name('home.index');
Route::redirect('/', 'app')->name('home.index');
This works well, but I'm not sure if there's a better way to do it. My second question is about the “profile” that appears in the top right-hand corner of the header when we're logged in. I would like to have something similar to that, but in the app panel, I tried a few things, but it didn't work. Sorry if I've gone on too long, thanks.
3 Replies
Dennis Koch
Dennis Koch4w ago
doesn't filament give me something to automatically redirect to /app?
No, because how should we know, that you want to redirect to /app? You can set up a redirect route yourself easily.
I would like to have something similar to that, but in the app panel, I tried a few things, but it didn't work.
What exactly do you want?
Ferks
FerksOP4w ago
I'm in the admin panel, and I have this, which is fine.
No description
Ferks
FerksOP4w ago
When i logout in and go to the app panel, I would like to have something similar, but instead of having the logout button, I would have a button to redirect to the login. Just to point out that the app panel is public, it doesn't need a login to be accessed.

Did you find this page helpful?