title: How can I get property from Laravel Illuminate\Support\Collection?
body: <p>I'm trying to property from collections, but I can't do this.</p>
  
  <p>I have this query:</p>
  
  <pre><code>$calls = collect(                                                                                                                                                                                                                                                                      
     DB::select("SELECT count(id)                                                                                                                                                                                                                                                               
                 FROM calls                                                                                                                                                                                                                                                                     
                 WHERE started_at &gt;= '" . $date . "' AND                                                                                                                                                                                                                                               
                       linked_id IS NULL")                                                                                                                                                                                                                                          );
  </code></pre>
  
  <p>And as the result I got this</p>
  
  <pre><code>Illuminate\Support\Collection {#82146
       all: [
         {#1097
           +"count": 15,
         },
       ],
     }
  </code></pre>
  
  <p>How can I get this "count"? I've tried to </p>
  
  <pre><code>$calls-&gt;count
  $count = get_object_vars($calls)
  </code></pre>
  
  <p>but in first case I have: 
  PHP error:  Undefined property: Illuminate\Support\Collection::$count on line 1
  and in the second I got empty array.</p>