vendredi 28 août 2015

How to read binded model value to laravel route

I understood to bind model object to laravel route. But how to read the binded value to request in controller. furthur how can set controller and action for route once i use anonymous function.

Route::get('/{user_id}', function (App\Models\User $user) {
       // What to write here to return controll to usercontrollers profile action i.e. UserController@Profile... 
});



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1KrdWLY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire