title: Unable to resolve dependency [Parameter #0 [ <required> $id ]] livewire
body: <p>This weird i am trying to send a id to the verify method it works locally and in production shows an error of Unable to resolve dependency.</p>
  <p>Here is the code which trigger the event</p>
  <pre><code>&lt;a wire:click='verifyComment({{$comment-&gt;id}})' class=&quot;px-4 py-2 text-white bg-indigo-600 rounded cursor-pointer hover:bg-indigo-900&quot;&gt;Verify&lt;/a&gt;
  </code></pre>
  <p>And the function</p>
  <pre><code>public function verifyComment($id)
      {
         $comment=Comments::find($id);
         $comment-&gt;verified=true;
         $comment-&gt;save();
         //updates the dashboard
         $this-&gt;getComments();
         $this-&gt;getTrendingPosts();
  
         session()-&gt;flash('message', 'Comment successfully verified.');
      }
  </code></pre>
  <p>I have tried so many using events but still can not make it work in production</p>