Pro Programmer
Conditional Field Population Based on Active Tab in Filament v3 User Resource.
I am working on a Filament v3 app and have a
UserResource
with three tabs: Super Admin
, Group Admin
, and Clinic Users
. Each tab contains its own set of fields. I want to ensure that when I create a user from the Clinic Users
tab, only the fields from that tab are populated, and the other fields are set to null. The same should apply to the other tabs as well. How can I achieve this in Filament v3?5 replies
Use Single Login Route For Multiple Panels
I'm using multiple panels in my Filament app, but each panel has its own login page.
I want a single login page at
domain/login
, and after authentication, users should be redirected to their respective panel based on their role.
Example:
Instead of separate login pages for each panel:
admin/login
group/login
I want a unified login page at domain/login
for all users. After login:
A user with the admin-user
role should be redirected to the AdminPanel.
A user with the group-user
role should be redirected to the GroupPanel.
How can I achieve this?7 replies