F
Filament5mo ago
J

Auto assign role

I think im blind but: I want when a user registeres, in the controller or where ever it gets handled, it automatically adds a default role to the registering user. Is there a file where the register gets handled, or should i do it in the User model in a static::creating?
3 Replies
Sjoerd24
Sjoerd245mo ago
Yeah i would do it there or in a dedicated observer.
J
J5mo ago
is there not like a file where the register gets handled? ic ant find it or im blind
Mike
Mike3mo ago
@Jochem did you find a solution for this?