I want to capture the ID of the route where I am at this moment that is the show route but I want to capture that id where I am and send them to another controller,
I explain in the URL user / {id} = user / 1 or user / 2 and so I want to capture that id that is shown in this view and thus pass it to another controller to be able to perform an inserted database
Route::get('user/{id}','UserController@show')->name('user.show');
http://localhost:8000/user/1
and I want to pass it to this driver StudentController
that ID
public function getID()
{
// here to capture that id
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire