title: Laravel file upload starts downloading page
body: <p>My form is working but when I add a file, Laravel starts downloading the following page:</p>
  
  <p><a href="https://i.stack.imgur.com/Dy2dT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dy2dT.png" alt="enter image description here"></a></p>
  
  <p>The home controller function "upload" is not called if there was a file uploaded.</p>
  
  <pre><code>//##### home.blade.php
  &lt;?php
       echo Form::open(['route' =&gt; 'home.upload', 'files' =&gt; true]);
       echo Form::text('name', null);
       echo '&lt;div class="clear"&gt;&lt;/div&gt;';
       echo Form::label('file', 'Upload File');
       echo Form::file('file', null, ['id' =&gt; 'file']);
       echo '&lt;div class="clear"&gt;&lt;/div&gt;';
       echo Form::submit('Submit!');
       echo Form::close(); 
  ?&gt;
  
  
  //##### web.php
  Route::post('/upload', [
      'as'    =&gt; 'home.upload',
      'uses'  =&gt; 'Home@upload'
  ]);
  
  //##### Home.php
  &lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  
  class Home extends Controller
  {
      public function index(Request $request)
      {
          return view('home');
      }
  
      public function upload(Request $request)
      {
           var_dump($request-&gt;hasFile('sql'))exit;
      }
   }
  </code></pre>
  
  <p>Does anybody know what the problem is?</p>