title: Laravel seeding error - wrong table name
body: <p>Laravel is throwing this error when I try to seed the database.</p>
  
  <p>My table is institution_school and not institution_schools, what Laravel reports in the error.</p>
  
  <pre><code> [Illuminate\Database\QueryException]
   SQLSTATE[42S02]: Base table or view not found: 1146 Table 'eesdatabase.inst
   itution_schools' doesn't exist (SQL: insert into `institution_schools` (`sc
   hool_id`, `instituion_id`, `energy_id`, `year`, `updated_at`, `created_at`)
    values (38, 1, 1, 2005, 2014-07-04 19:38:41, 2014-07-04 19:38:41))
  </code></pre>
  
  <p>I try to drop database and again migrate and seed.
  I try to reset Laravel cache with "php artisan:cache clear"</p>
  
  <p>Does anyone know how to fix this?
  Thanks</p>
  
  <pre><code>&lt;?php    
  class InstitutionSchool extends Eloquent {
  
  
      protected $table = "institution_school";        
      protected $guarded = array('id');
  
      public function school() {
          return $this -&gt; belongsTo('School');
      }
  
      public function institutio() {
          return $this -&gt; belongsTo('Institution');
      }
  
      public function energy() {
          return $this -&gt; belongsTo('Energy');
      }    
  }
  ?&gt;
  
  &lt;?php
  class InstitutionSchoolTableSeeder extends DatabaseSeeder {
      public function run() {
          DB::table('institution_school') -&gt; delete();
  
          $faker = $this -&gt; getFaker();
          $schools = School::all();
          $institutions = Institution::all();
          $energies = Energy::all();
  
          foreach ($schools as $school) {
              for ($i = 0; $i &lt; rand(1, 5); $i++) {
                  $year = $faker -&gt; randomNumber(2000, 2015);
  
                  InstitutionSchool::create(array(
                  'school_id' =&gt; $school -&gt; id, 
                  'instituion_id' =&gt; 1,
                  'energy_id' =&gt; 1, 
                  'year' =&gt; $year));
              }
  
          }
      }
  
  }
  ?&gt;
  
  &lt;?php    
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Database\Migrations\Migration;
  
  class CreateInstitutionSchoolTable extends Migration {
  
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          Schema::create('institution_school', function(Blueprint $table)
          {
              $table-&gt;increments('id');
              $table-&gt;integer('institution_id')-&gt;unsigned();
              $table-&gt;integer('school_id')-&gt;unsigned();
              $table-&gt;string('year');
              $table-&gt;string('other_source_name')-&gt;nullable();
  
              $table-&gt;integer('energy_id')-&gt;unsigned()-&gt;nullable();
  
              $table-&gt;timestamps();
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::table('institution_school', function(Blueprint $table)
          {
              Schema::drop('institution_school');
          });
      }    
  }
  </code></pre>