F
Filament9mo ago
Mike

Setting default user role when registering account?

I'm tasked on allowing normal users to register to the panel, alongside normal users there are admin accounts too. I'm using spatie roles and persmissions for managing user roles. I searched everywhere and seems there is no way to directly handle user registration in order to set a default user role, i really need access to registration process as i also have other first i need to take care of. As far as i have seen, the only way to sort of manage to do so is using model events, which is eh not good not bad
3 Replies
awcodes
awcodes9mo ago
I would do this with a model observer.
Mike
MikeOP9mo ago
Thank you, ended up extending it
Want results from more Discord servers?
Add your server