Replies: 2 comments 1 reply
-
Just found this in another question: https://filamentphp.com/docs/2.x/admin/users#configuring-the-name-attribute Don’t see this referenced in the v3 docs. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I get the same error I changed the users table to be firstname and last name |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to modify fields on my user table as I'm trying to convert an existing app over to Filament. However, it doesn't seem like you can modify the user table fields as I'm now getting an error
Filament\FilamentManager::getUserName(): Return value must be of type string, null returned
.Upon inspecting the FilemantManager file, I'm seeing this method:
This seems like "name" is hard-coded and can't be modified without changing the source files, or overriding/extending the FilamentManager file. Is that what I'm supposed to do? I can't imagine I'm the only person who's wanted to change the fields on the users table. Please help me understand how I can get the desired functionality without modifying the source files.
Beta Was this translation helpful? Give feedback.
All reactions