Home>

I want to reflect the data in the database with laravel.

I'm new to programming and I'm not sure what the error is, so I'd like to hear from you.
I am getting the error "Class'Database \ Seeders \ Seeder' not found".
How can this be resolved? ?? Thank you.

error contents

PS C: \ Users \ kazmu \ Downloads \ laravelapp>php artisan db: seed --class = FoldersTableSeeder
   Error
  Class'Database \ Seeders \ Seeder' not found
  at C: \ Users \ kazmu \ Downloads \ laravelapp \ database \ seeders \ FoldersTableSeeder.php: 8
      4 ▕ use Illuminate \ Database \ Seeder;
      5 ▕ use Illuminate \ Support \ Facades \ DB;
      6 ▕ namespace Database \ Seeders;
      7 ▕
  ➜ 8 ▕ class FoldersTableSeeder extends Seeder
      9 ▕ {
     10 ▕/**
     11 ▕ * Run the database seeds.
     12 ▕ *
  1 C: \ Users \ kazmu \ Downloads \ laravelapp \ vendor \ composer \ ClassLoader.php: 444
      include ()
  2 C: \ Users \ kazmu \ Downloads \ laravelapp \ vendor \ composer \ ClassLoader.php: 322
      Composer \ Autoload \ includeFile ("C: \ Users \ kazmu \ Downloads \ laravelapp \ vendor \ composer/../ ../database/seeders/FoldersTableSeeder.php")
Corresponding source code
(Database \ Seeders \ FoldersTableSeeder)
<? php
use Carbon \ Carbon;
use Illuminate \ Database \ Seeder;
use Illuminate \ Support \ Facades \ DB;
namespace Database \ Seeders;
class FoldersTableSeeder extends Seeder
{
   /**
     * Run the database seeds.
     *
     * @return void
     * /
    public function run ()
    {
        $titles = ['Private','Work','Travel'];
        foreach ($titles as $title) {
            DB :: table ('folders')->insert ([
                'title' =>$title,
                'created_at' =>Carbon :: now (),
                'updated_at' =>Carbon :: now (),
            ]);
        }
    }
}