Binding Relevant Models to Routes in Nested Laravel Resources.
Route model binding is a great and well-known feature of the Laravel framework. But, when we work with nested resources, we might write a custom rule explicitly that ensures the child models can be load with the correct parent model. Let’s see! Let’s say we have a Post and a Comment model.Read More