title: Why routes are not working in laravel-livewire?
body: <p>I am working having laravel-livewire. In my project route are not working.</p>
  <p>Here the route list..</p>
  <pre><code>&lt;?php
  
  use App\Http\Livewire\HomeComponent;
  use App\Http\Livewire\ShopComponent;
  use App\Http\Livewire\CartComponent;
  use App\Http\Livewire\CheckoutComponent;
  use Illuminate\Support\Facades\Route;
  
  Route::get('/',HomeComponent::class);
  
  Route::get('/shop',ShopComponent::class);
  
  Route::get('/cart',CartComponent::class);
  
  Route::get('/checkout',CheckoutComponent::class);
  </code></pre>
  <p>From the above route only 1st route work properly.But the rest are not working.
  They shows 404(Not Found).</p>
  <p>Here I am giving 2nd route componet and resource materials.</p>
  <p>ShopComponent</p>
  <pre><code> &lt;?php
  
   namespace App\Http\Livewire;
   use Livewire\Component;
  
  class ShopComponent extends Component
  {
   public function render()
   {
      return view('livewire.shop-component')-&gt;layout('layouts.base');
   }
  }
  </code></pre>
  <p>Shop-component.blade.php</p>
  <pre><code>&lt;div&gt;
  Shop Page
  &lt;/div&gt;
  </code></pre>
  <p>Why the code not working?
  Here the screenshoot of the problem..
  <a href="https://i.stack.imgur.com/lROeG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lROeG.png" alt="enter image description here" /></a></p>