title: Laravel - Call to undefined method Maatwebsite\Excel\Excel::create()
body: <p>I'm still getting this error, even though I have added the service provider and alias in config/app.php</p>
  
  <p><strong>Controller.php</strong></p>
  
  <pre><code>    public function export_app_csv(){
          $data = Item::get()-&gt;toArray();
          return Excel::create('test_export', function($excel) use ($data) {
                  $excel-&gt;sheet('mySheet', function($sheet) use ($data)
                  {
                      $sheet-&gt;fromArray($data);
                  });
           })-&gt;download('xlsx');
      }
  </code></pre>
  
  <p><strong>config/app.php</strong></p>
  
  <pre><code>    /*
       * Package Service Providers...
       */
      Maatwebsite\Excel\ExcelServiceProvider::class,
  
      /* aliases */
      'Excel' =&gt; Maatwebsite\Excel\Facades\Excel::class,
  </code></pre>
  
  <p>the method in the controller is just an example from a site. because I still dont have any idea how laravel excel works.</p>
  
  <p>Then following the <a href="https://laravel-excel.maatwebsite.nl/docs/3.0/export/basics#docs" rel="nofollow noreferrer">docs</a> gave me more problems.</p>
  
  <pre><code>namespace App\Exports;
  
  class InvoicesExport implements FromCollection
  {
      public function collection()
      {
          return Invoice::all();
      }
  }
  </code></pre>
  
  <p>the above code gives me <code>Interface 'App\FromCollection' not found</code></p>