title: Call to a member function getClientOriginalName() on string
body: <pre><code>{!! Form::open(['route' =&gt; 'product.store', 'method' =&gt; 'post', 'files' =&gt; true]) !!}
  
  {!! Form::close() !!}
  </code></pre>
  
  <p>i'm using this code but it generate the following error</p>
  
  <p><strong>FatalThrowableError</strong> </p>
  
  <p><strong>Call to a member function getClientOriginalName() on string</strong></p>
  
  <pre><code> public function store(Request $request)
  {
      $formInput = $request-&gt;except('image');
  
      $image = $request-&gt;image;            
  
      if($image){
          $imageName = $image-&gt;getClientOriginalName();
          $image-&gt;move('images',$imageName);
          $formInput['image'] = $imageName;
      }
  
      Product::create($formInput);
      return redirect()-&gt;route('admin.index');
  }
  </code></pre>