Learn Laravel – Route Model Binding
There is a feature in laravel which allows you to inject into the route model instances. Previously, you would have had to pass the ID of the model that you wanted to work with in the request and then you would write all the business logic yourself and validate the Models ID.