I have a link that goes to a address like
Is it possible to make a route for that kind of link i tired below route but it does not work
Route::get('/pages/vehicles?show={id}', ['middleware' => ['roles'], 'uses' => 'PagesController@show', 'roles' => ['Admin']]);
I had a similar problem trying to send a form directly to a route (using something like /pages/vehicles/61) but it seems to be imposible (question here).
If you don't have a specific route for all vehicles (/pages/vehicles doesn't show a list of vehicles) you can do something like:
And inside your controller
and then whatever you need to do with that. Otherwise, a "hack" like I did or javascript (I'm assuming you are sending this from a form).