I need customize the login page with two forms, it is possible?
I have an application with multiple panels, and a I need one login page to both panels (like attach image), is possible do it? how can a I do it? thanks guys.

4 Replies
Create your own Login page and use this for
->login(YourPage::class)
. Check Filaments login class for reference
Why do you want to split them though? Different auth guards?this an example of how to customize the login page, just override the parent class methods:
https://filamentexamples.com/tutorial/register-wizard-steps
Filament Examples
Registration with Wizard Steps
If you have a longer registration form, you may want to split it into steps, with wizard, including different validation rules.
and for your use case (login for different users) the same website has an example for it too:
https://filamentexamples.com/tutorial/multiple-panels-sign-in-via-one-sign-in-page
https://filamentexamples.com/tutorial/customize-redirect-after-login-and-registration
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.
Filament Examples
Filament Registration: Customize Redirect Page
The dashboard is the default page after login/registration. But what if we want something custom? How to redirect the user to a different resource/page?
They will give you the main point and then find out yourself