bellini
Display relationship data in a resource
I have a Post model that has a user_id column that relates to User model on a relationship called user(), in a resource how can I show the user name for that Post? Right now I have this, and looking at the docs I did not found a way to do this:
4 replies
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.
6 replies