title: Laravel Eloquent collection attributes
body: <p>I'm developing a webapp with Laravel 5.2 but there is an issue that I can't solve.</p>
  
  <p>I have a model which extends Eloquent Model but when I try to output my database table with "where", for example </p>
  
  <pre><code>\App\MyModel::where('id_table', 23)-&gt;first();
  </code></pre>
  
  <p>It return a collection with many informations not useful for me at this moment like 'guarded', 'keytype'... and my table's data are under 'attributes'.
  Following laravel's guide I see everybody use simply where like me and then output with <code>$mytable-&gt;myvalue</code>, but this cannot work for me of course.</p>
  
  <p>Here a screenshot with the collection I'm talking about:</p>
  
  <p><a href="https://i.stack.imgur.com/bAA2j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bAA2j.png" alt="enter image description here"></a></p>
  
  <p>How can I get always just attributes when I use something like <code>"::where()"</code>?</p>
  
  <p>I've tried <code>getAttributes()</code> but it gives me a 500 error.</p>