F
Filament2w ago
Nils

Admin and User Panel

Hey, i check out filament at the moment, and want to build a admin panel to check and control things, and a user panel for every user. how that work? I see there is no default /register? /login? route or button like in laravel basic. Want to make that the user can handle normal saas app, but i can manage with admin panel all Some information about that?
Solution:
what you can do is to use build in filament methods on your provider like that: ```php final class AdminPanelProvider extends PanelProvider...
Filament Examples
Filament Multiple Panels: Single Login Page for Admin/User Roles
Having multiple panels is excellent for separating users from other roles. However, managing each different login page can be tricky. So, let's make one login page for all panels and switch redirects based on roles.
Jump to solution
2 Replies
Solution
SnaggyDainc
SnaggyDainc2w ago
what you can do is to use build in filament methods on your provider like that:
final class AdminPanelProvider extends PanelProvider
{
/**
* @throws Exception
*/
public function panel(Panel $panel): Panel
{
return $panel
->passwordReset()
->login()
->registration()
->profile()
final class AdminPanelProvider extends PanelProvider
{
/**
* @throws Exception
*/
public function panel(Panel $panel): Panel
{
return $panel
->passwordReset()
->login()
->registration()
->profile()
Also to build separate side for User and Admin you could follow this: https://filamentexamples.com/tutorial/multiple-panels-sign-in-via-one-sign-in-page
Filament Examples
Filament Multiple Panels: Single Login Page for Admin/User Roles
Having multiple panels is excellent for separating users from other roles. However, managing each different login page can be tricky. So, let's make one login page for all panels and switch redirects based on roles.
Nils
NilsOP2w ago
Thx to u

Did you find this page helpful?