Seeder on laravel 8
Opened this issue · 0 comments
m2ura commented
Hi,
What's the new way for Laravel 8 on the below
public function run()
{
factory(Opportunity::class, 300)->create()->each(function ($opportunity){
$opportunity->detail()->save(factory(OpportunityDetail::class)->make());
});
}
}