Bind multiple models to a form in Laravel 5 and validate it

Form model binding in Laravel 5 makes the programmers’ live easier, no doubt. But what if you want to bind multiple models to a form? This is not straight forward but it’s not so complex either. (May be it was till I cracked it) Follow the steps below and you should be okay. Note: I am assuming that there is a one on one relationship between the models you are binding. Form model binding works if you have Laravel Collective’s Form & HTML package installed in your project.   Creating the…

Read More