title: Class DatabaseSeeder does not exist... Seeder not working in laravel
body: <p>I would like to put some data in table so I would like to use DatabaseSeeder but when I try : php artisan db:seed this error occur: </p>
  
  <pre><code>ReflectionException  : Class DatabaseSeeder does not exist
  
    at /home/bruno/projetconcert/vendor/laravel/framework/src/Illuminate/Container/Container.php:767
      763|         if ($concrete instanceof Closure) {
      764|             return $concrete($this, $this-&gt;getLastParameterOverride());
      765|         }
      766| 
    `enter code here`&gt; 767|         $reflector = new ReflectionClass($concrete);
  </code></pre>
  
  <p>I have already try to do a composer dump-autoload or changing namespace or use another directory in "autoload" in  composer.json but nothing work...</p>
  
  <p>here the 2 files :</p>
  
  <pre><code> &lt;?php
  
      namespace database\seeds;
      namespace projetconcert;
  
      use Illuminate\Database\Seeder;
  
  
      class DatabaseSeeder extends Seeder
      {
          /**
           * Run the database seeds.
           *
           * @return void
           */
          public function run()
          {
  
              $this-&gt;call(CategoryPlaceSeeder::class);
  
          }
      }
  </code></pre>
  
  <p>the second one : </p>
  
  <pre><code>&lt;?php
  
  
  namespace database\seeds;
  namespace projetconcert;
  
  
  use Illuminate\Database\Seeder;
  
  use DB;
  
  class CategoryPlaceSeeder extends Seeder
  {
      /**
       * Seed the application's database.
       *
       * @return void
       */
      public function run()
      {
          DB::table('category_places')-&gt;insert([
  
                                              [
                                                  'id' =&gt; 1,
                                                  'category_name' =&gt; 'balcon',
                                              ],
                                              [
                                                  'id' =&gt; 2,
                                                  'category_name' =&gt; 'terasse',
                                              ],
                                              [
                                                  'id' =&gt; 3,
                                                  'category_name' =&gt; 'debout',
                                              ],
                                          ]);
      }
  }
  </code></pre>
  
  <p>If someone have any idea, it would help for my project. Thanks</p>