title: One form is working while other form is not working in laravel 5.4
body: <p>I've UserController in which I've two options - </p>
  
  <p>1) For Updating Profile</p>
  
  <p>2) For Updating Password</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Input;
  use App\User;
  use Auth;
  use Hash;
  
  class UserController extends Controller
  {
      public function profile(){
          return view('profile', array('user' =&gt; Auth::user()));
      }
  
      public function update_avatar(Request $request){
          if(isset($request-&gt;avatar) &amp;&amp; $request-&gt;avatar-&gt;getClientOriginalName()){
              $ext = $request-&gt;avatar-&gt;getClientOriginalExtension();
              $file = date('YmdHis').rand(1,99999).'.'.$ext;
              $request-&gt;avatar-&gt;storeAs('public/avatar',$file);
  
          }
          else
          {
              $user = Auth::user();
              if(!$user-&gt;avatar)
                  $file = '';
              else
                  $file = $user-&gt;avatar;
          }
          $user = Auth::user();
              $user-&gt;avatar = $file;
              $user-&gt;name = $request-&gt;name;
              $user-&gt;email = $request-&gt;email;
              $user-&gt;mb_number = $request-&gt;mb_number;
              $user-&gt;home_town = $request-&gt;home_town;
              $user-&gt;save();
  
          return view('profile', array('user' =&gt; Auth::user()));
  
      }
  
      public function update_password(Request $request){
          $user = Auth::user();
          if(Hash::check(Input::get('old_password'), $user['password']) &amp;&amp; Input::get('new_password') == Input::get('confirm_new_password')){
              $user-&gt;password = bcrypt(Input::get('new_password'));
              $user-&gt;save();
          }
          return view('profile', array('user' =&gt; Auth::user()));
      }
  
  }
  </code></pre>
  
  <p>In my view blade, I've two forms - </p>
  
  <ol>
  <li>update_avatar for updating profile like name, phone number and avatar.</li>
  <li><p>update_password for updating password.</p>
  
  <p>
            
            
              
              </p>
  
  <pre><code>        &lt;/div&gt;
          &lt;div class="widget-user-image"&gt;
            &lt;img class="img-circle" src="{{ asset('public/storage/avatar/'.$user-&gt;avatar) }}" alt="User Avatar"&gt;
  
          &lt;/div&gt;
          &lt;div class="box-footer"&gt;
            &lt;div class="row"&gt;
              &lt;div class="col-sm-4 border-right"&gt;
                &lt;div class="description-block"&gt;
                  &lt;h5 class="description-header"&gt;{{ $user-&gt;email }}&lt;/h5&gt;
                  &lt;span class="description-text"&gt;Email&lt;/span&gt;
                &lt;/div&gt;
                &lt;!-- /.description-block --&gt;
              &lt;/div&gt;
              &lt;!-- /.col --&gt;
              &lt;div class="col-sm-4 border-right"&gt;
                &lt;div class="description-block"&gt;
                  &lt;h5 class="description-header"&gt;{{ $user-&gt;name }}&lt;/h5&gt;
                  &lt;span class="description-text"&gt;{{ $user-&gt;home_town }}&lt;/span&gt;
                &lt;/div&gt;
                &lt;!-- /.description-block --&gt;
              &lt;/div&gt;
              &lt;!-- /.col --&gt;
              &lt;div class="col-sm-4"&gt;
                &lt;div class="description-block"&gt;
                  &lt;h5 class="description-header"&gt;{{ $user-&gt;mb_number }}&lt;/h5&gt;
                  &lt;span class="description-text"&gt;Phone No.&lt;/span&gt;
                &lt;/div&gt;
                &lt;!-- /.description-block --&gt;
              &lt;/div&gt;
              &lt;!-- /.col --&gt;
            &lt;/div&gt;
            &lt;!-- /.row --&gt;
          &lt;/div&gt;
          &lt;!--
          &lt;div class="box-footer no-padding"&gt;
            &lt;ul class="nav nav-stacked"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Projects &lt;span class="pull-right badge bg-blue"&gt;31&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Tasks &lt;span class="pull-right badge bg-aqua"&gt;5&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Completed Projects &lt;span class="pull-right badge bg-green"&gt;12&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Followers &lt;span class="pull-right badge bg-red"&gt;842&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
          --&gt;
        &lt;/div&gt;
        &lt;/div&gt;
  
            &lt;section class="content"&gt;
              &lt;div class="container-fluid"&gt;
                  &lt;form action="/profile" enctype="multipart/form-data" method="POST"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="name"&gt;Name&lt;/label&gt;
                              &lt;input type="text" name="name" class="form-control" id="name" placeholder="Title" value="{{$user-&gt;name}}"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="email"&gt;Email&lt;/label&gt;
                              &lt;input type="text" name="email" class="form-control" id="email" placeholder="Description" value="{{$user-&gt;email}}" readonly&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="mb_number"&gt;Mobile No.&lt;/label&gt;
                              &lt;input type="text" name="mb_number" class="form-control" id="mb_number" placeholder="Schedule" value="{{$user-&gt;mb_number}}"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="home_town"&gt;Home Town&lt;/label&gt;
                              &lt;input type="text" name="home_town" class="form-control" id="home_town" placeholder="Deadline" value="{{$user-&gt;home_town}}"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label&gt;Update Profile Image&lt;/label&gt;
                              &lt;input type="file" name="avatar"&gt;
                              @if($user-&gt;avatar)
                              &lt;img src="{{ asset('public/storage/avatar/'.$user-&gt;avatar) }}" style="width:150px;"&gt;
                              @endif
                          &lt;/div&gt;
                      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"
                      &lt;a href="" type="submit" class="btn btn-info"&gt;&lt;/a&gt;
                      &lt;button type="submit" class="btn btn-primary"&gt;Update&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  &lt;/section&gt;
  
  &lt;section class="content"&gt;
              &lt;div class="container-fluid"&gt;
                  &lt;form action="/profile" enctype="multipart/form-data" method="POST"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="old_password"&gt;Old Password&lt;/label&gt;
                              &lt;input type="password" name="old_password" class="form-control" id="old_password" placeholder="Old Password"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="new_password"&gt;New Password&lt;/label&gt;
                              &lt;input type="password" name="new_password" class="form-control" id="new_password" placeholder="New Password"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="confirm_new_password"&gt;Confirm New Password &lt;/label&gt;
                              &lt;input type="password" name="confirm_new_password" class="form-control" id="confirm_new_password" placeholder="Confirm New Password"&gt;
                          &lt;/div&gt;
                      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"
                      &lt;a href="" type="submit" class="btn btn-info"&gt;&lt;/a&gt;
                      &lt;button type="submit" class="btn btn-primary"&gt;Update Password&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  &lt;/section&gt;
  </code></pre></li>
  </ol>
  
  <p>update_password function is working fine but update_avatar function is not working neither it's showing any error. I've tried dd($user) but still not giving output to dd.</p>