mleontenko
7 months ago
823
2
Laravel

One to many relation in forms (without JavaScript)

Posted 7 months ago by mleontenko

I have a form for adding address to a user. One user can have anything from zero to dozens of addresses (one to many relationship in database).

Is there a simple way to create a form in Laravel that allows the user to add or delete address fileds without writing custom JavaScript code that handles add/delete buttons?

It should look something like this:

View post on imgur.com

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