AlexDev
AlexDev
FFilament
Created by AlexDev on 2/4/2024 in #❓┊help
Question about project filament and seed withProgressBar
Hi all! In the seeder file using method withProgressBar
$user = $this->withProgressBar(1, fn () => User::factory(1)->create([
'name' => 'Demo User',
'email' => '[email protected]',
]));
$user = $this->withProgressBar(1, fn () => User::factory(1)->create([
'name' => 'Demo User',
'email' => '[email protected]',
]));
I don't understand how to add another user with email to get something like this? And get a progressbar with a corresponding counter of 2, since it would have two records as one in this case:
$user = $this->withProgressBar(1, fn () => User::factory(1)->sequence([
'name' => 'Demo Admin',
'email' => '[email protected]',
],[
'name' => 'Demo User',
'email' => '[email protected]',
])->create());
$user = $this->withProgressBar(1, fn () => User::factory(1)->sequence([
'name' => 'Demo Admin',
'email' => '[email protected]',
],[
'name' => 'Demo User',
'email' => '[email protected]',
])->create());
4 replies