laravel-grid icon indicating copy to clipboard operation
laravel-grid copied to clipboard

Dynamically route id's

Open necenzurat opened this issue 5 years ago • 1 comments

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?

necenzurat avatar Jul 18 '18 13:07 necenzurat

+1

alexeydg avatar Oct 10 '18 11:10 alexeydg