title: How to return a single object instead of a collection in Laravel
body: <p>I try to <strong>return a single object</strong> instead of a collection in <em>Laravel</em>. Actually this code works:</p>
  
  <pre><code>public function show($id)
  {
      $facture = Facture::where('id', '=', $id)-&gt;with('items')-&gt;with('client')-&gt;get();
      return Response::json($facture[0]);
  }
  </code></pre>
  
  <p>but I Would like to know if it's the right way to do it?</p>