Target class [NotificationTypeSeeder] does not exist

i am calling a seeder class in the DatabaseSeeder in laravel

<?php

use IlluminateDatabaseSeeder;
use DatabaseSeedersNotificationTypeSeeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        // $this->call(UserSeeder::class);
        $this->call(DatabaseSeedersNotificationTypeSeeder::class);
    }
}

this is my composer.json file

        "classmap": [
            "database/seeds",
            "database/factories"
        ]

i am getting this error

  Target class [NotificationTypeSeeder] does not exist.

Answer

try this

<?php

use IlluminateDatabaseSeeder;

class DatabaseSeeder extends Seeder
{
  
    public function run()
    {
        $this->call([NotificationTypeSeeder::class]);
    }
}