title: Cannot declare class because the name is already in use in (same file)
body: <p>I'm getting the following error while running my web app:</p>
  <pre><code>[Fri Jan 15 19:25:23 2021] PHP Fatal error:  Cannot declare class App\Http\Livewire\Customer because the name is already in use in /home/&lt;username&gt;/Projects/&lt;project_name&gt;/app/Http/Livewire/Customer.php on line 9
  </code></pre>
  <p>The declaration error is basically complaining about its own file and I'm not sure why.
  This is the content of the Customer.php file:</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Livewire;
  
  use Livewire\Component;
  use Livewire\WithPagination;
  use App\Models\Customer;
  use Illuminate\Support\Facades\Auth;
  
  class Customer extends Component
  {
      use WithPagination;
      
      public function render()
      {
          $customers = Customer::where('user_id', Auth::id())-&gt;paginate(9);
          return view('livewire.customer')-&gt;with(['customers' =&gt; $customers]);
      }
  }
  </code></pre>
  <p>Can someone help me untackle this problem?</p>