title: route /$id in livewire cant access data
body: <p>ok i want to create route like showing data in another page like this</p>
  <blockquote>
  <p>http://localhost:8000/uraian/1</p>
  </blockquote>
  <p>my route like this</p>
  <p><code>        Route::get('/uraian/{id}', [PengadaanController::class, 'uraian'])-&gt;name('uraian');</code></p>
  <p>i can access this and its normal . now its my livewire function</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Livewire;
  
  use Livewire\WithPagination;
  
  use App\Models\Kegi;
  
  use App\Models\Uraian;
  
  use Livewire\Component;
  
  class UraianLw extends Component
  
  {
  
      use WithPagination;
         public $uraianid ,$kegiatan_id ,$kode_rekening ,$uraian ,$anggaran ;
  
  
  
  
      public function render($id)
  
      {
  
          $kegiatan = Kegi::findOrFail($id);// here the problem
  
          $newid = $kegiatan-&gt;id ;
  
          
  
          return view('livewire.uraian-lw',[
  
              'uraian' =&gt; Uraian::where('id' ,$newid)-&gt;where('uraian', 'like', '%'.$this-&gt;search.'%')-&gt;paginate(10)
  
          ]);
  
      }
  }
  </code></pre>
  <p>and have error</p>
  <blockquote>
  <p>Unable to resolve dependency [Parameter #0 [  $id ]] in class App\Http\Livewire\Uraian</p>
  </blockquote>
  <p>how can solved this problem ?</p>
  <p>#update its my blade</p>
  <pre><code>&lt;x-app-layout&gt;
  &lt;x-slot name=&quot;header&quot;&gt;
      &lt;h2 class=&quot;font-semibold text-xl text-gray-800 leading-tight&quot;&gt;
          {{ __('Dashboard') }} 
      &lt;/h2&gt;
  &lt;/x-slot&gt;
  
  
       @livewire('uraian-lw')
             
      
  
  &lt;/x-app-layout&gt;
  </code></pre>