title: How can I solve "Call to undefined method Maatwebsite\Excel\Excel::create()" in the Maatwebsite excel on laravel?
body: <p>I using laravel 5.6 and Maatwebsite version 3 </p>
  
  <p>From this tutorial <a href="https://github.com/Maatwebsite/Laravel-Excel" rel="nofollow noreferrer">https://github.com/Maatwebsite/Laravel-Excel</a></p>
  
  <p>I try like this :</p>
  
  <pre><code>public function exportToExcel(Request $request)
  {
      $header_item[] = array('Item Number', 'Description', 'Remaining Quantity', 'Sold Quantity', 'Average Price'); 
      $items = $this-&gt;itemRepository-&gt;getItem();
      foreach($items as $item) {
          $header_item[] = array(
              'Item Number'           =&gt; $item['item_number'],
              'Description'           =&gt; $item['description'],
              'Remaining Quantity'    =&gt; $item['remaining_quantity'],
              'Sold Quantity'         =&gt; $item['sold_quantity'],
              'Average Price'         =&gt; $item['average_price']
          );
      }
      Excel::create('Summary', function($excel) use ($header_item) {
          $excel-&gt;setTitle('Summary');
          $excel-&gt;sheet('Summary', function($sheet)
              use ($header_item) {
                  $sheet-&gt;fromArray($header_item, null, 'A1', false, false);
              }
          );
      })-&gt;download('xlsx');
  }
  </code></pre>
  
  <p>There exist error : </p>
  
  <pre><code>Call to undefined method Maatwebsite\Excel\Excel::create()
  </code></pre>
  
  <p>How can I solve this error?</p>