laravel create seed class code example
Example 1: eloquent run seeder
php artisan db:seed --class=UserSeeder
Example 2: db seed in controller
$fullClassName = "Nitseditor\\Plugins\\${pluginName}\\Databases\\seeds\\InstallSeeder";
Artisan::call("db:seed", ['--class' => $class]);