title: Multiple tables in one model - Laravel
body: <p>My Index page uses 3 tables in the database:</p>
  
  <ul>
  <li>index_slider</li>
  <li>index_feature</li>
  <li>footer_boxes</li>
  </ul>
  
  <p>I use one controller (IndexController.php) and call the three models like so:</p>
  
  <pre><code>public function index() { 
  return View::make('index')
  -&gt;with('index_slider', IndexSlider::all())
  -&gt;with('index_feature', IndexFeature::all())
  -&gt;with('footer_boxes', FooterBoxes::all()); 
  }
  </code></pre>
  
  <p>The three <strong>models</strong> above need <em>::all()</em> data, so they are all setup like this:</p>
  
  <pre><code>class IndexSlider extends Eloquent {
  public $table ='index_slider';
  }
  </code></pre>
  
  <p><strong>note:</strong> <em>class name changes for each model</em></p>
  
  <p>Seeing as my index page requires these 3 tables and the fact I am repeating the syntax in each model then should I be using polymorphic relations or setting this up differently? ORM from what I have read should have 1 model for each table, but I can't help but feel this would be silly in my situation and many others. DRY (don't repeat yourself) looses meaning in a sense. </p>
  
  <p>What would be the best approach to take here or am I on the right track?</p>