laravel-grid
laravel-grid copied to clipboard
Dynamically route id's
Hi! is there any way to attach an id to the default route? my route is:
Route::get('{id}/details', 'Campaigns\SimpleCampaignController@details')->name('campaign.simple.details');
it generates something like this:
/campaigns/simple/32/details
the grid is located at the route above and if i edit the
$this->setIndexRouteName('campaign.simple.details');
i get an error. Missing required parameters for [Route: campaign.simple.details] [URI: campaigns/simple/{id}/details].
is there a way to pass the current route id to the method?
+1