Route Model Binding | Five Minute Laravel

preview_player
Показать описание
Route Model Binding is a handy feature of Laravel that makes our lives as developers easier. We don't have to think about it—Laravel just makes it happen automatically.

And if you've used Laravel for longer than a few days, you've probably used route model binding before—but there are a few things hiding in the documentation that might come in handy for your next project—like Explicit Binding!

Explicit binding is a special type of route binding that allows you to give Laravel specific instructions as to what it should/shouldn't bind to the route. It's super handy to filter models that shouldn't be available in a route, like drafts.

Check out the video for specifics—it'll only take five minutes!
Рекомендации по теме
Комментарии
Автор

Straight to the point and no bullshit with showing us the useless behind the scene stuff that didn't matter!

Excellent video!
Should do just small ones like this.

adamm