#how disable 2fa for admin
4 messages · Page 1 of 1 (latest)
I could be wrong, but I don't think Filament injects a named or typed object for a $user. You just get it using auth()->user(). So maybe ...
isRequired: fn () => auth()->user()?->name !== 'admin'
name it is my columns dont matter name or just user i cannot catch this at ], isRequired: fn ($user)
Read that message again. fn ($user) probably won't give you the User.