Very simple mutate data before create. But it is not working
It must be a very stupid mistake. This is a fresh filament and I just want to implement a very simple feature that auto assign role column for user
Return error
And ofcourse I already defined 'role' ass fillable on my user.php
Solution:Jump to solution
I think you should put this method in Create Page rather than Resource Page
7 Replies
Solution
I think you should put this method in Create Page rather than Resource Page
It works... Amazing thanks! @tinkypinky
but I have a follow up question. I am new to fillament
Sure
How am I supposed to know where to put this function? Is it written somewhere in the docs
"Create Page Class" Okay nevermind..
Yes
Thank you again! I'm just rushing through the documentation. Rookie mistake