title: Why I'm getting 'Non-static method should not be called statically' when invoking a method in a Eloquent model?
body: <p>Im trying to load my model in my controller and tried this:</p>
  
  <pre><code>return Post::getAll();
  </code></pre>
  
  <p>got the error <code>Non-static method Post::getAll() should not be called statically, assuming $this from incompatible context</code></p>
  
  <p>The function in the model looks like this:</p>
  
  <pre><code>public function getAll()
  {
  
      return $posts = $this-&gt;all()-&gt;take(2)-&gt;get();
  
  }
  </code></pre>
  
  <p>What's the correct way to load the model in a controller and then return it's contents?</p>