Single Login and Register Process for Multiple Panels
Hello everyone! I'm a beginner in FilamentPHP. I have a question.
How do I achieve a single login and register process across multiple panels?
When I put ->login to the AdminPanelProvider, I can login in /admin/login, and when I put also ->login in CustomerPanelProvider, I can login in /customer/login.
I want to be able to have only https://localhost.../login and redirect the user to either the Customer or Admin Panel if it meets the required role. How do I achieve this in Filament?
Thanks in advance!
Solution:Jump to solution
I created a custom login system outside of filament and connect them to each other
5 Replies
Hi did you find the solution
Solution
I created a custom login system outside of filament and connect them to each other
Please how do you do it
Just create one page, and on each panel provider you call that page like
->login(MyCustomLoginPage::class)
And inside the login function you check like
Thankyou very much