title: No such file or directory in ...vendor/composer/ClassLoader.php:444 (Laravel)
body: <p>I'm writing a code in Laravel. When I try to make a post with a file in the form, it will throw the following exception:</p>
  
  <blockquote>
    <p>Got error 'PHP message: PHP Fatal error:  Uncaught ErrorException: include(/var/www/vhosts/web2/httpdocs/vendor/composer/../../app/Exceptions/Handler.php): failed to open stream: No such file or directory in /var/www/vhosts/web2/httpdocs/vendor/composer/ClassLoader.php:444\nStack trace:\n#0 <br />
    .
    .
    . 
    <br /></p>
    
    <p>n#5 /var/www/vhosts/web2/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): ReflectionClass->__construct('App\...', referer: (hidden)</p>
  </blockquote>
  
  <p>add.blade.php:</p>
  
  <pre><code>@include('flash::message')
  &lt;form class="form-horizontal" enctype="multipart/form-data" action="{{action('SheetController@add')}}" method="post"&gt;
  @csrf
  &lt;div class="form-group"&gt;
    &lt;label class="col-md-4 control-label" for="icao"&gt;ICAO&lt;/label&gt;  
    &lt;div class="form-group col-md-4"&gt;
      &lt;input placeholder="i.e. SAAC" class="form-control input-md" id="icao" name="icao" type="text" required /&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
    &lt;label class="col-md-4 control-label" for="fir"&gt;FIR&lt;/label&gt;  
    &lt;div class="col-md-4"&gt;
      &lt;select id="fir" name="fir" class="form-control input-md" required&gt;
      &lt;option value="SAEF"&gt;Ezeiza&lt;/option&gt;
      &lt;option value="SACF"&gt;C&amp;oacute;rdoba&lt;/option&gt;
      &lt;option value="SAMF"&gt;Mendoza&lt;/option&gt;
      &lt;option value="SAVF"&gt;Comodoro Rivadavia&lt;/option&gt;
      &lt;option value="SARR"&gt;Resistencia&lt;/option&gt;
     &lt;/select&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
    &lt;label class="col-md-4 control-label" for="version"&gt;Version&lt;/label&gt;  
    &lt;div class="form-group col-md-4"&gt;
      &lt;input placeholder="i.e. 1.2" class="form-control input-md" id="version" name="version" type="text" required /&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- File input--&gt;
  &lt;div class="form-group"&gt;
    &lt;label class="col-md-4 control-label" for="sheetfile"&gt;Archivo&lt;/label&gt;  
    &lt;div class="col-md-4"&gt;
      &lt;input id="sheetfile" name="sheetfile" class="form-control input-md" required type="file"&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;hr style="margin-bottom:20px;"&gt;
  
  &lt;div class="form-group"&gt;
    &lt;div class="btn-group"&gt;
      &lt;button type="submit" class="btn btn-success"&gt;Add&lt;/button&gt;
      &lt;input type="reset" class="btn btn-warning" value="Reset" /&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>SheetController.php:</p>
  
  <pre><code>public function add(Request $request)
  {
      if(!empty($request-&gt;all()))
      {
          $sheet = new Sheet();
          $sheet-&gt;icao = $request-&gt;icao;
          $sheet-&gt;fir = $request-&gt;fir;
          $sheet-&gt;version = $request-&gt;version;
  
          $newName = $sheet-&gt;icao.'_v'.$sheet-&gt;version.'.pdf';
  
          if($request-&gt;file('sheetfile')-&gt;getClientOriginalExtension() != 'pdf')
          {
              flash()-&gt;error('File not allowed')-&gt;important();
          }
          else if($request-&gt;imagen-&gt;storeAs('ATC/Sheets', $newName, 'files'))
          {
              if($sheet-&gt;save()) flash()-&gt;success('Sheet added')-&gt;important();
              else flash()-&gt;error($sheet-&gt;errors()-&gt;first())-&gt;important();
          }
          else flash()-&gt;error('The file could not be uploaded.')-&gt;important();
      }
      return redirect()-&gt;action('SheetController@list');
  }
  </code></pre>
  
  <p>I have already tried <code>composer update</code> and <code>composer dump-autoload</code></p>
  
  <p>Any ideas?</p>