title: Laravel php artisan db:seed leads to "use" statement error
body: <p>When I try to run <code>php artisan db:seed</code> I get the following error:</p>
  
  <p><code>The use statement with non-compound name 'DB' has no effect</code></p>
  
  <p>I have written my own seeder file which I have included below, based on a <a href="http://laravel.com/docs/5.1/seeding#writing-seeders" rel="noreferrer">snippet from the doc</a>. As you can see I am using the <code>use DB</code> shortcut - is this what the problem is?</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Seeder;
  use Illuminate\Database\Eloquent\Model;
  use DB;
  
  class ClassesTableSeeder extends Seeder
  {
      /**
       * Run the database seeds.
       *
       * @return void
       */
      public function run()
      {
          DB::table('classes')-&gt;delete();
          DB::table('classes')-&gt;insert([
              'class_name'    =&gt; 'Test course 111',
              'class_id'      =&gt; '1',
              'location_name' =&gt; 'Barnes',
              'location_id'   =&gt; '1',
              'date'          =&gt; '2015-06-22',
              'month'         =&gt; '06/2015',
              'start_time'    =&gt; '08:00',
              'end_time'      =&gt; '16:00',
              'places'        =&gt; '19',
              'places_left'   =&gt; '19',
              'price'         =&gt; '155.00'
          ]);
      }
  }
  </code></pre>