title: Laravel 5 Easy way to get the id of the record selected with a slug
body: <p>I am trying to find a easy way to get the id of a record (selected with a slug) so I can use it to query the children of this record (parent/child related).</p>
  
  <pre><code>$product = Products::where('url','the-slug')-&gt;get();
  </code></pre>
  
  <p>Now I can use the collection to get the id and go on with querying the children.</p>
  
  <p>Is there a easier way to do this? </p>
  
  <p><strong>And...</strong></p>
  
  <p>Can I query the children by slug alone?</p>