Our Black Friday sale is now live! All individual subscriptions are 50% OFF. This week only!

Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.

About This Episode

Published on Mar 6th, 2020

Laravel 7 includes some useful improvements to route model binding. You may now specify a custom route key name without adding a getRouteKeyName() method to the associated model. Instead, simply add the custom key as part of the route declaration: /posts/{post:slug}. Additionally, when specifying custom keys, Laravel will automatically scope them to a parent relationship if relevant.

Discuss It

Back to Series Button