title: Laravel : $request->hasFile() is not working
body: <p>I have a form where i get the <code>title</code>,<code>description</code> and an <code>image</code>. When i <code>dd($requests-&gt;all());</code>, It returns the following which is correct.</p>
  
  <pre><code>array:4 [
    "projectTitle" =&gt; "asd"
    "project_description" =&gt; "asd"
    "project_image" =&gt; "15940723_1336567063030425_9215184436331587115_n.jpg"
    "_token" =&gt; "eUj27iioySvIgut5Afu0ZHMgeVrO99a9e1o7Tw0w"
  ]
  </code></pre>
  
  <p>And i am storing the values as :</p>
  
  <pre><code>$project = new Portfolio;
  $project-&gt;freelancer_id = Auth::user()-&gt;id;
  $project-&gt;title = $request-&gt;get('projectTitle');
  $project-&gt;description = $request-&gt;get('project_description');
  
  if($request-&gt;hasFile('project_image')){
     $project_image = $request-&gt;file('project_image');
     $filename = time() . '.' . $project_image-&gt;getClientOriginalExtension();
     Image::make($project_image)-&gt;resize(197, 137)-&gt;save( public_path('/uploads/portfolios/' . $filename ) );
     $project-&gt;img = $filename;
  }
  
  $project-&gt;save();
  </code></pre>
  
  <p><strong>But the <code>img</code> DB table field gets null.</strong> </p>
  
  <p>The <code>if($request-&gt;hasFile('project_image'))</code> is not getting the field, </p>
  
  <p>Also i have form where the method is <code>POST</code> and have <code>enctype="multipart/form-data"</code> and a for file i have <code>&lt;input type="file" name="project_image" id="project_image"&gt;</code>.</p>
  
  <p>What have i done wrong? </p>