title: Select all from table with Laravel and Eloquent
body: <p>I am using Laravel 4 to set up my first model to pull all the rows from a table called <code>posts</code>.</p>
  
  <p>In standard MySQL I would use: </p>
  
  <pre><code>SELECT * FROM posts;
  </code></pre>
  
  <p>How do I achieve this in my Laravel 4 model? </p>
  
  <p>See below for my complete model source code:</p>
  
  <pre><code>&lt;?php
  
  class Blog extends Eloquent 
  {
  
      /**
       * The database table used by the model.
       *
       * @var string
       */
      protected $table = 'posts';
  
      public function getAllPosts()
      {
  
      }
  
  }
  </code></pre>