Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

migration with seeder laravel

public function run()
{
  $this->call(RegiserUserSeeder::class);
}

php artisan migrate:refresh --seed
  
//Or to run specific seeder
php artisan seeder RegiserUserSeeder
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #migration #seeder #laravel
ADD COMMENT
Topic
Name
5+6 =