title: How to update value in User Table in laravel 5.1
body: <p>I have an issue I cannot update my user table . I don't know where he problem is.Whenever I submit my updated info it cannot updated. It Does not show any error. But the table is not updated. Please Help me guys.
  My Controller is</p>
  
  <pre><code>public function getUpdate() {
  
          $profile = Auth::user();
          return view('admin.article.edit')
          -&gt;with('profile',$profile);
      }
  
      public function postUpdate(Request $request ) {
  $profile = Auth::user();
  
          $this-&gt;validate($request, [
              'name' =&gt; 'required|max:120',
              'username' =&gt; 'required|max:80',
              'email' =&gt; 'required',
              'password' =&gt; 'required'
              ]);
  
           // save users table
          $profile = Auth::user();
          // $user = new App\User;
          $profile-&gt;name = $request-&gt;input('name');
          $profile-&gt;email = $request-&gt;input('email');
          $profile-&gt;username = $request-&gt;input('username');
          $profile-&gt;password = $request-&gt;input('password');
          $profile-&gt;update();
  }
  </code></pre>
  
  <p>My edit.blade.php page is</p>
  
  <pre><code>&lt;?php $active="profile"; ?&gt;
  @extends('admin.dashboard')
  @section('content')
    &lt;!-- Content Wrapper. Contains page content --&gt;
    &lt;div class="content-wrapper"&gt;
      &lt;!-- Content Header (Page header) --&gt;
      &lt;section class="content-header"&gt;
        &lt;h1&gt;
          User Profile
        &lt;/h1&gt;
        &lt;ol class="breadcrumb"&gt;
          &lt;li&gt;&lt;a href="#"&gt;&lt;i class="fa fa-dashboard"&gt;&lt;/i&gt; Home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="active"&gt;User profile&lt;/li&gt;
        &lt;/ol&gt;
      &lt;/section&gt;
  
  &lt;!-- Main content --&gt;
      &lt;section class="content"&gt;
        &lt;div class="row"&gt;
          &lt;!-- left column --&gt;
          &lt;div class="col-md-10"&gt;
            &lt;!-- general form elements --&gt;
            &lt;div class="box box-primary"&gt;
              &lt;div class="box-header with-border"&gt;
                &lt;h3 class="box-title"&gt;Quick Example&lt;/h3&gt;
              &lt;/div&gt;
              &lt;!-- /.box-header --&gt;
              &lt;!-- form start --&gt;
              &lt;form action="{{ route('update') }}" role="form" method="post" enctype="multipart/form-data"&gt;
                &lt;div class="box-body"&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="name"&gt;Name&lt;/label&gt;
                    &lt;input type="text" class="form-control" name="name" id="name" {{ $errors-&gt;has('name') ? 'class=has-error' : '' }} value="{{ Request::old('name') ? Request::old('name') : isset($profile) ? $profile-&gt;name : '' }}"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="username"&gt;User Name&lt;/label&gt;
                    &lt;input type="text" class="form-control" name="institute" id="institute" {{ $errors-&gt;has('username') ? 'class=has-error' : '' }} value="{{ Request::old('institute') ? Request::old('username') : isset($profile) ? $profile-&gt;institute : '' }}"&gt;
                  &lt;/div&gt;
  &lt;/div&gt;
                &lt;!-- /.box-body --&gt;
  
                &lt;div class="box-footer"&gt;
                  &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
                  &lt;input type="hidden" name="_token" value="{{ Session::token() }}"&gt;
                  &lt;input type="hidden" name="id" value="{{ $profile-&gt;id }}"&gt;
                &lt;/div&gt;
              &lt;/form&gt;
            &lt;/div&gt;
            &lt;!-- /.box --&gt;
  
          &lt;/div&gt;
          &lt;!--/.col (left) --&gt;
        &lt;/div&gt;
        &lt;!-- /.row --&gt;
      &lt;/section&gt;
      &lt;!-- /.content --&gt;
  @endsection  
  </code></pre>
  
  <p>My route file is</p>
  
  <pre><code>Route::get('/profile/edit', [
                      'uses' =&gt; 'ProfileController@getUpdate',
                      'as' =&gt; 'edit'
              ]);
  
          Route::post('profile/update', [
                      'uses' =&gt; 'ProfileController@postUpdate',
                      'as' =&gt; 'update'
              ]);
  </code></pre>