DEV Community

hafizpustice05
hafizpustice05

Posted on • Originally published at codechief.org

Laravel 7 | Route Model Binding

Hey Artisan

I think you have already known that route model binding is enhanced by taylor otwell in Laravel 7. Today i will show you how route model binding works in Laravel 7.

Sometimes you may wish to resolve Eloquent models using a column other than id. To do so, Laravel 7 allows you to specify the column in the route parameter definition

https://www.codechief.org/article/laravel-7-route-model-binding

Top comments (0)