Modifying slug in resource class
I have a resource class that's related to a model, and I want to have a url like
Here's where I'm linking to the resource class:
locations/{location}/vendors/{vendor} to edit the vendors related to the location. However, I don't want to use a RelationManager, I just want to have a separate page where a user can manage the records.
I've modified my VendorResource class to attach the slug, and I can link this, but 1, I'm getting a Missing required parameter` error for the location parameter, and 2) how do I ensure that when I load the resource page, it's only pulling the vendors associated with the location.Here's where I'm linking to the resource class: