Is it possible to use the filament control panel for this?
Hello everyone, I would like to use the filament control panel as the default panel for my web app. What I want to do is simply have the administrator enter the normal filament panel and the employee enter a livewire view and simply have a button to log out and return to the filament panel. Is this possible to do ? Any suggestions to easily implement roles and permissions? I am new at this.
Solution:Jump to solution
ok thanks I will make a second control panel you gave me a good idea thanks
4 Replies
If I'm understanding the question, you can simply do this with multiple panels.
Do you plan to have a unified login form or a different login form for each employee type?
or can a user be both an admin and an employee?
Hello, if I want to have a unified user panel, I do not have the skill or technical knowledge to do something very complex, so I want to simplify everything, that the employee when logging in, in a livewire component view, example home.blade.view only I see it and log out and if you are an administrator, enter the filament panel normally. Any guide or something I would really appreciate it, greetings
Creating a second panel shouldn't add much complexity. If you create and register one filament panel, you just do it again for the second panel. https://filamentphp.com/docs/3.x/panels/configuration#creating-a-new-panel
The only real complexity in my mind is redirecting the user during the login process but you can override the default Login page to handle that logic.
https://filamentphp.com/docs/3.x/panels/users#customizing-the-authentication-features
Solution
ok thanks I will make a second control panel you gave me a good idea thanks