Mutating form data when using simple resources and wizards
I have generated a simple resource from following along in the documentation and I have created a wizard to enter a new entity into my database.
One of the values however, just comes from the user creating the record but I cannot figure out which file (Contact/ContactResource/ManageContacts) where I am supposed to make the mutation that the documentation suggestions.
A piece of constructive feedback from myself would be, although there are a lot of code examples in the docs, they don't generally say where they live / which file they should be in which for me, creates confusion slightly.
Apologies if I am missing something obvious here, first time using laravel and straight in with Filament,
One of the values however, just comes from the user creating the record but I cannot figure out which file (Contact/ContactResource/ManageContacts) where I am supposed to make the mutation that the documentation suggestions.
A piece of constructive feedback from myself would be, although there are a lot of code examples in the docs, they don't generally say where they live / which file they should be in which for me, creates confusion slightly.
Apologies if I am missing something obvious here, first time using laravel and straight in with Filament,
Solution
That should work, are you sure you have created_by_id in the fillables of the model?