title: How can I access a model from a controller using laravel4?
body: <p>How can I access a model from a controller using laravel4?</p>
  
  <p>So far I have my controller:</p>
  
  <pre><code>&lt;?php
  class GatewayController extends BaseController {
  
  public function getContentAll()
  {
      $content = Content::getContentAll();
      return $content;
  
  }
  </code></pre>
  
  <p>And my model:</p>
  
  <pre><code>&lt;?php
  
  class Content extends Eloquent {
  
      protected $table = '_content';
  
      public function getContentAll(){
  
          return 'test';
      }
  </code></pre>
  
  <p>But I get:</p>
  
  <pre><code>Whoops, looks like something went wrong.
  </code></pre>