Answers for "how to seed specific model laravel"

PHP
9

laravel make seeder

php artisan make:seeder NameOfTheSeeder
Posted by: Guest on May-15-2020
0

db seed in controller

$fullClassName = "Nitseditor\\Plugins\\${pluginName}\\Databases\\seeds\\InstallSeeder";

Artisan::call("db:seed", ['--class' => $class]);
Posted by: Guest on September-04-2020

Code answers related to "how to seed specific model laravel"

Browse Popular Code Answers by Language