title: Data is not updating in database on update Laravel 5.2
body: <p>I just implement the <code>CRUD</code> in my Application , but UPDATE is not updating data in Database I <code>var_dump($user-&gt;name)</code> but it outputs nothing . Please take a look on the code and help me out.I am using Laravel 5.2 and Resource Controller.</p>
  
  <p>PS : Edit is working fine e.g on this URL <code>http://localhost/pos/users/6/edit?id=6</code> I can populate the view fields with the required data but when I hit update nothing updates in Database.</p>
  
  <p><strong>UserController:</strong></p>
  
  <pre><code>  public function edit($id)
          {
              $user = User::find($id);
              return view('user.update')-&gt;with('userToUpdate',$user);
          }
  
          /**
           * Update the specified resource in storage.
           *
           * @param  \Illuminate\Http\Request  $request
           * @param  int  $id
           * @return \Illuminate\Http\Response
           */
          public function update(Request $request, $id)
          {
              $user = User::find($id);
              $user-&gt;name = Input::get('name');
              $user-&gt;email = Input::get('email');
              $user-&gt;password = bcrypt(Input::get('password'));
              $user-&gt;save();      
              return Redirect::to('/users')-&gt;with('message', 'User Updated');
          }
  </code></pre>
  
  <p><strong>UpdateView:</strong></p>
  
  <pre><code>@extends('layouts.app')
  
  @section('content')
  &lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-8 col-md-offset-2"&gt;
              &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading"&gt;Update&lt;/div&gt;
                  &lt;div class="panel-body"&gt;
                      &lt;form class="form-horizontal" role="form" method="PUT" action="{{ url('/users') }}"&gt;
                          {!! csrf_field() !!}
  
                          &lt;div class="form-group{{ $errors-&gt;has('name') ? ' has-error' : '' }}"&gt;
                              &lt;label class="col-md-4 control-label"&gt;Name&lt;/label&gt;
  
                              &lt;div class="col-md-6"&gt;
                                  &lt;input type="text" class="form-control" name="name" value="{!! $userToUpdate-&gt;name !!}"&gt;
  
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group{{ $errors-&gt;has('email') ? ' has-error' : '' }}"&gt;
                              &lt;label class="col-md-4 control-label"&gt;E-Mail Address&lt;/label&gt;
  
                              &lt;div class="col-md-6"&gt;
                                  &lt;input type="email" class="form-control" name="email" value="{!! $userToUpdate-&gt;email !!}"&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group{{ $errors-&gt;has('password') ? ' has-error' : '' }}"&gt;
                              &lt;label class="col-md-4 control-label"&gt;Password&lt;/label&gt;
  
                              &lt;div class="col-md-6"&gt;
                                  &lt;input type="password" class="form-control" name="password" value="{!! $userToUpdate-&gt;password !!}"&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
  
                          &lt;div class="form-group"&gt;
                              &lt;div class="col-md-6 col-md-offset-4"&gt;
                                  &lt;button type="submit" class="btn btn-primary"&gt;
                                      &lt;i class="fa fa-btn fa-user"&gt;&lt;/i&gt;Update
                                  &lt;/button&gt;
                              &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>UserModel:</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Foundation\Auth\User as Authenticatable;
  
  class User extends Authenticatable
  {
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = [
          'name', 'email', 'password',
      ];
  
      /**
       * The attributes that should be hidden for arrays.
       *
       * @var array
       */
      protected $hidden = [
          'password', 'remember_token',
      ];
  }
  </code></pre>
  
  <p><strong>Routes:</strong></p>
  
  <pre><code>Route::group(['middleware' =&gt; 'web'], function () {
      Route::get('/', function () {
          return view('welcome');
      });
  
      Route::auth();
  
      Route::get('/home', 'HomeController@index');
      Route::get('/register', function(){
          return view('auth.register');
      })-&gt;middleware('isAdmin');
      Route::resource('/users', 'UsersController');
  
  });
  </code></pre>