title: Class 'App\imports\ExcelImport' not found , in laravel excel import case
body: <p>import class</p>
  <pre><code>&lt;?php
  
  namespace App\Imports;
  
  use App\Excel;
  use Maatwebsite\Excel\Concerns\ToModel;
  use Illuminate\Support\Facades\Hash;
  
  class ExcelImport implements ToModel
  {
      /**
      * @param array $row
      *
      * @return \Illuminate\Database\Eloquent\Model|null
      */
      public function model(array $row)
      {
          return new Excel([
              'name' =&gt; $row[0],
              'email' =&gt; $row[1],
              'password' =&gt; Hash::make($row[2]),
          ]);
      }
  }
  </code></pre>
  <p>Controller</p>
  <pre><code>&lt;?php
  
  namespace Modules\Admin\Http\Controllers;
  
  use Illuminate\Contracts\Support\Renderable;
  use Illuminate\Http\Request;
  use Illuminate\Routing\Controller;
  
  use App\imports\ExcelImport;
  use Maatwebsite\Excel\Facades\Excel;
  
  use DB;
  use Validator;
  use session;
  
  class ImportExcelController extends Controller
  {
    public function store(Request $request)
      {
          $validator = Validator::make($request-&gt;all(),[
              'file' =&gt; 'required|mimes:xls,xlsx,csv'
          ]);
  
          if ($validator-&gt;fails()) {
              return redirect()-&gt;back()-&gt;withErrors($validator);
          }else{
  
              $file = $request-&gt;file;
               
              $data = Excel::import(new ExcelImport, $file);
  
              return redirect()-&gt;back()-&gt;with('message','File uploaded successfully');
          }
  
              
  
      }
  }
  </code></pre>
  <p>showing</p>
  <pre><code>Class 'App\imports\ExcelImport' not found , line &quot;$data = Excel::import(new ExcelImport, $file);&quot;
  </code></pre>
  <p>Why am I getting this error still? I have imported the excel class already in the controller.</p>
  <p>Help me to find out this issue.</p>