lundi 28 janvier 2019

I want to capture the id of this route

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
}



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2ThPOU7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire