title: Class 'Maatwebsite\Excel\Excel' not found
body: <p>my <code>composer.json</code>:</p>
  
  <pre><code>    ...
      "maatwebsite/excel": "^3.0",
      ...
  </code></pre>
  
  <p>I can run my project on localhost but when I upload on server I got this error message:</p>
  
  <pre><code>Class 'Maatwebsite\Excel\Excel' not found
  </code></pre>
  
  <p>my laravel version:</p>
  
  <pre><code>Laravel Framework 5.5.40
  </code></pre>
  
  <p>my public directory:</p>
  
  <p><a href="https://i.stack.imgur.com/iJ4ML.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/iJ4ML.jpg" alt="enter image description here"></a></p>
  
  <p>public_html/public/index.php</p>
  
  <pre><code>&lt;?php
  
  /**
   * Laravel - A PHP Framework For Web Artisans
   *
   * @package  Laravel
   * @author   Taylor Otwell &lt;taylor@laravel.com&gt;
   */
  
  /*
  |--------------------------------------------------------------------------
  | Register The Auto Loader
  |--------------------------------------------------------------------------
  |
  | Composer provides a convenient, automatically generated class loader for
  | our application. We just need to utilize it! We'll simply require it
  | into the script here so that we don't have to worry about manual
  | loading any of our classes later on. It feels great to relax.
  |
  */
  
  
  require __DIR__.'/../bootstrap/autoload.php';
  /*
  |--------------------------------------------------------------------------
  | Turn On The Lights
  |--------------------------------------------------------------------------
  |
  | We need to illuminate PHP development, so let us turn on the lights.
  | This bootstraps the framework and gets it ready for use, then it
  | will load up this application so that we can run it and send
  | the responses back to the browser and delight our users.
  |
  */
  
  $app = require_once __DIR__.'/../bootstrap/app.php';
  
  /*
  |--------------------------------------------------------------------------
  | Run The Application
  |--------------------------------------------------------------------------
  |
  | Once we have the application, we can handle the incoming request
  | through the kernel, and send the associated response back to
  | the client's browser allowing them to enjoy the creative
  | and wonderful application we have prepared for them.
  |
  */
  
  $kernel = $app-&gt;make(Illuminate\Contracts\Http\Kernel::class);
  
  $response = $kernel-&gt;handle(
      $request = Illuminate\Http\Request::capture()
  );
  
  $response-&gt;send();
  
  $kernel-&gt;terminate($request, $response);
  </code></pre>
  
  <p>my website:</p>
  
  <p><a href="http://alsatmarketing.com/" rel="noreferrer">http://alsatmarketing.com/</a></p>
  
  <p><strong>updated</strong></p>
  
  <p>I get this error after run <code>composer require maatwebsite/excel:^3.0</code>:</p>
  
  <pre><code> Problem 1
      - Installation request for maatwebsite/excel 3.0 -&gt; satisfiable by maatwebsite/excel[3.0.0].
      - Conclusion: remove laravel/framework v5.5.40
      - Conclusion: don't install laravel/framework v5.5.40
      - maatwebsite/excel 3.0.0 requires illuminate/support ^5.6 -&gt; satisfiable by illuminate/support[v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17,
  v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.3, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
      - don't install illuminate/support v5.6.4|don't install laravel/framework v5.5.40
      - don't install illuminate/support v5.6.5|don't install laravel/framework v5.5.40
      - don't install illuminate/support v5.6.6|don't install laravel/framework v5.5.40
      - don't install illuminate/support v5.6.7|don't install laravel/framework v5.5.40
      - don't install illuminate/support v5.6.0|don't install laravel/framework v5.5.40
      - don't install illuminate/support v5.6.1|don't install laravel/framework v5.5.40
      - illuminate/support v5.6.10 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.11 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.12 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.13 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.14 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.15 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.16 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.17 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.19 conflicts with laravel/framework[v5.5.40].
      - don't install illuminate/support v5.6.2|don't install laravel/framework v5.5.40
      - illuminate/support v5.6.20 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.21 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.22 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.23 conflicts with laravel/framework[v5.5.40].
      - don't install illuminate/support v5.6.3|don't install laravel/framework v5.5.40
      - illuminate/support v5.6.8 conflicts with laravel/framework[v5.5.40].
      - illuminate/support v5.6.9 conflicts with laravel/framework[v5.5.40].
      - Installation request for laravel/framework (locked at v5.5.40, required as 5.5.*) -&gt; satisfiable by laravel/framework[v5.5.40].
  
  
  Installation failed, reverting ./composer.json to its original content.
  </code></pre>