title: how to get single id from array
body: <p>need help , I am new in laravel framework,here how we can passed the checkpoint id this is my code.</p>
  
  <pre><code> $data['checkpoints'] = CheckpointTemplate::where('checklist_template_id', $data['checklist']-&gt;checklist_template_id)-&gt;where('is_flexible',0)-&gt;orderby('sort_order', 'asc')-&gt;orderby('sort_order', 'asc')-&gt;get()-&gt;toArray();
  </code></pre>
  
  <p>this working fine, but here how to passed
      <code>$data['checkpoint_error_msgs'] =</code> <code>CheckpointErrormsg::where('checkpoint_id',**$data['checkpoints']-&gt;id**)-&gt; orderby('error_message', 'asc')-&gt;lists('error_message', 'error_message');</code></p>