Now Laravel7 is having route model binding improvement

when implicitly binding multiple Eloquent models in a single route definition, you may wish to scope the second Eloquent model such that it must be a child of the first Eloquent model.

Laravel 7 will automatically scope the query to retrieve the nested model by its parent using conventions to guess the relationship name on the parent

Useful Links:
Docs: https://laravel.com/docs/7.x/releases
Github: https://github.com/laravel/laravel

#laravel #php #webdev

Whats new in Laravel 7 - Route Model Binding Improvement
9.55 GEEK