title: Update User Profile Laravel 5.6
body: <p>Hello I have just started in Laravel and am trying to update the users profile:
  My route:</p>
  
  <pre><code>Route::patch('users/{user}/update',  ['as' =&gt; 'users.update', 'uses' =&gt; 'UserController@update']);
  </code></pre>
  
  <p>My View:</p>
  
  <pre><code>&lt;form method="post" action="{{route('users.update', $user)}}"&gt;
  
      {{ csrf_field() }}
      {{ method_field('patch') }}
  
      &lt;input type="text" name="name"  value="{{ $user-&gt;name }}" /&gt;
      &lt;input type="email" name="email"  value="{{ $user-&gt;email }}" /&gt;
  
  
      &lt;input type="password" name="password" /&gt;
  
      &lt;input type="password" name="password_confirmation" /&gt;
  
      &lt;button type="submit"&gt;Send&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and my update function in UserController:</p>
  
  <pre><code>public function update(User $user)
      { 
  
          $this-&gt;validate(request(), [
              'name' =&gt; 'required',
              'email' =&gt; 'required|email|unique:users',
          ]);
  
          $user-&gt;name = Request::input('name');
          $user-&gt;email = Request::input('email');
  
          $user-&gt;save();
          Flash::message('Your account has been updated!');
          return back();
      }
  </code></pre>
  
  <p>I dont get any errors yet my user profiles aren't updated.Can sb help me?</p>