lundi 11 mars 2019

Add query string to laravel 5 route which has optional parameters

I have the following route:

Route::get('shop/browse/{category?}', 'ShopController@browse');

I would like to append some query parameters whether category param is present or not. Is there a better way to do it instead of passing optional params as null? e.g.

<a href="">Browse</a>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire