Answers for "crating seed laravel"

PHP
21

laravel run seed

#All of them
php artisan db:seed
#One class
php artisan db:seed --class=UserSeeder
Posted by: Guest on May-08-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

Browse Popular Code Answers by Language