title: Laravel get Id from the collection
body: <p>Laravel get Id from the collection </p>
  
  <pre><code>$collection = Test::whereDate('created_at', '=', $today)-&gt;where('cuid', $user-&gt;id)-&gt;where('month', date('m'))-&gt;get();        
          echo "&lt;pre&gt;";
          print_r($collection);
          echo "&lt;/pre&gt;";
          exit();
  </code></pre>
  
  <p>How to return id from this collection </p>
  
  <p>because i want to update for that particular id </p>