Laravel get model without appends attributes
<p>I'm working with Laravel 5.3 and in a Model <code>Post</code>, I have an appends attributes :</p>

<pre><code>/*
* toJson
*/
protected $appends = ['count'];
</code></pre>

<p>And the magic method : </p>

<pre><code>public function getCountAttribute()
    {
        return Offer::where('id', '=', $this-&gt;id)-&gt;count();
    }
</code></pre>

<p>So, when I get a <code>Post</code> model with eloquent like <code>Post::get()</code>, and get the return with json for example, I ALWAYS have this attribute <code>count</code> in my object.</p>

<p>How can I specify if I want or not this or another appends atribute ?</p>