Eloquent Route Model Binding & RESTful Controller - Part 3
In part 3 of our RESTful Controller, we are continuing with the Edit and Update methods of our controller. Follow along as we get this implemented on our project.
Eloquent Route Model Binding & RESTful Controller - Part 2
In part 2 of the RESTful Controller refactor, we are tackling the show method of our methodology. Along the way, we are going to learn how to add a wildcard to a route and all about Route Model Binding and how it can automatically fetch a record for us.
Now that we are adding customers, we need to add some validation to our form. Laravel makes this process very easy, follow along as we make the name field required.
As we progress on our learning, we need to find a place for all of the logic we have been putting inside the web.php file. The correct place for such logic is a dedicated controller.