title: Can't update user in laravel
body: <p>I want some help with my code.</p>
  
  <p>I try to update user data but it's not update anything.</p>
  
  <p>User Name, Email, Posisson, Image.</p>
  
  <p>Any help please.</p>
  
  <p><strong>My Route :</strong>
  <em>I used URL because route didn't work.</em></p>
  
  <pre><code>Route::get('editusers/{id}','UsersController@update');
  </code></pre>
  
  <p><strong>My Controller:</strong></p>
  
  <pre><code>public function edit($id)
  {
      $editusers=User::findOrFail($id);
      return view('admin.users.EditUser', compact('editusers'));
  }
  
  public function update(Request $request, $id)
  {
     $this-&gt;validate($request, [
          'name' =&gt; 'required',
          'email' =&gt; 'required',
          'posission' =&gt; 'required',
      ]);
      $useredit = User::find($id);
      $useredit-&gt;name = $request-&gt;input('name');
      $useredit-&gt;email = $request-&gt;input('email');
      $useredit-&gt;posission = $request-&gt;input('posission');
      if($request-&gt;hasFile('file'))
      {
          $file = $request-&gt;file('file');
          $filename = time().'.'.$file-&gt;getClientOriginalExtension();
          Image::make($file)-&gt;resize(150, 150)-&gt;save(public_path('/admin/images/'.$filename));
          $useredit-&gt;UserImg = $filename;
      }
  
      $useredit-&gt;save();
      return redirect()-&gt;back();
  }
  </code></pre>
  
  <p><strong>HTML :</strong></p>
  
  <pre><code>&lt;form class=""  action="{{url('editusers',Auth::user()-&gt;id)}}"  role="form" enctype="multipart/form-data"&gt;
       {!! csrf_field() !!}
       &lt;input type="hidden" name="_method" value="PUT"&gt;
  
       &lt;label&gt;Edit Your Profile :&lt;/label&gt;
       &lt;div class="form-group"&gt;
           &lt;label&gt;Name :&lt;/label&gt; 
           &lt;input class="form-control" value="{{$editusers-&gt;name}}" name="Name"&gt;
       &lt;/div&gt;
  
        &lt;div class="form-group"&gt;
           &lt;label&gt;Email :&lt;/label&gt;
           &lt;input class="form-control" value="{{$editusers-&gt;email}}" name="email"&gt;
        &lt;/div&gt;
        &lt;div class="form-group"&gt;
            &lt;label&gt;Posisson :&lt;/label&gt;
            &lt;input class="form-control" value="{{$editusers-&gt;posission}}" name="posission"&gt;
        &lt;/div&gt;
        &lt;div class="form-group"&gt;
            &lt;label&gt;Image :&lt;/label&gt;
            &lt;img src="{{ asset('admin') }}/images/{{$editusers-&gt;UserImg}}" alt="avatar" class="img-circle" style="max-height: 100px;"&gt;
            &lt;input type="file" id="file" name="file"/&gt; 
        &lt;/div&gt;
    &lt;input class="btn btn-success btn-mini deleteRecord" type="submit"   name="submit" value="Update"&gt;
  </code></pre>
  
  <p></p>
  
  <p>What I expect is that it updates my database.</p>