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;
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nu1XWc
via IFTTT
Aucun commentaire:
Enregistrer un commentaire