I have a route like so
Route::get('/sales/{id}','SalesController@index');
How can I pass extra values to the index
function? In my scenerio I want to pass the /sales
as well with the {id}
from the route.
Here I get only the id
for now from the index
function.
public function index($id){
return $id;
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire