how to remove question mark form url in laravel i use laravel 5.4 and i get this trey to use query in the link but it don't work http://localhost/shooping-cart/public/add-to-cart/id?1
i want to remove id and question mark form url i use laravel 5.4
Route::get('/add-to-cart/{id}', [
'uses' => 'ProductController@getAddToCart',
'as' => 'product.addToCart'
]);
via Mohammed Hamad