Basic question regarding relationships in a resource
I have a Post resource, that has a user_id column, and in my form method I have this array:
How can I automatically save the current authenticated user in the user_id? I have searched the documentation and tried it on the CreatePost class with the mutateFormDataBeforeCreate method but sill doesn't work.
How can I automatically save the current authenticated user in the user_id? I have searched the documentation and tried it on the CreatePost class with the mutateFormDataBeforeCreate method but sill doesn't work.