2 years ago

Multiple Form Requests

Posted 2 years ago by concentrico

I'm building an API and I don't know which approach to take regarding form request. I have a users table which has name, lastname, email and password. The table has a polymorphic relationship with a users_admins table and users_clients table.

When I create a client, I need to create the user as well but all of it is sent in one request. How can I use two form requests (one for the users and one for the clients)?

What's the best way to approach this without mixing everything in one usersclients form request?

Please sign in or create an account to participate in this conversation.