jeudi 3 août 2017

Laravel Route model binding - empty user

I have a route

http://ift.tt/2vrYVZn

I am trying to return the user based on the url id.

  public function edit($id, \App\User $user)
    {
        dd($user->id);
         return view('user.update');

    }

The id is returning null, how do I do this?



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

Aucun commentaire:

Enregistrer un commentaire