H4L1M
Redirect to Profile On UsersRessource
I solved it by Overriding the authorizeAccess method on EditUser Class
to check if the user is trying to Edit his own Record Before actually testing the Authorization part , then redirect to the EditProfilePage Class ( from Joaopaulolndev\FilamentEditProfile Plugin )
the other part is treated om the UserPolicy.php as @skyrowl refered
5 replies
Save Action in a separate file
@Leandro Ferreira Was just wondering and thought to add a question maybe some else will have the same ... , figured that I can add a method like userform() that returns an array in the related model "User" for example
then just call it like
wherever I want the form
6 replies
Form Component Placeholder
hello,
the place holder accepts a method ->extraAttributes()
the solution is to pass css class in an array like this
how ever theres only text-danger-600 compiled in the CSS app class , so am using
instead , did I forget somethig ?
also the palceholder accepts HTML code ingection like this
as @Prosp30 motioned , thnks
5 replies