adding product seeder
This commit is contained in:
@@ -16,9 +16,29 @@ class DatabaseSeeder extends Seeder
|
||||
{
|
||||
// User::factory(10)->create();
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Test User',
|
||||
'email' => 'test@example.com',
|
||||
//User::factory()->create([
|
||||
// 'name' => 'Test User',
|
||||
// 'email' => 'test@example.com',
|
||||
//]);
|
||||
|
||||
Product::create([
|
||||
'name' => 'Ant Spray',
|
||||
'description' => '',
|
||||
'price' => 10000,
|
||||
]);
|
||||
|
||||
|
||||
Product::create([
|
||||
'name' => 'Spider Spray',
|
||||
'description' => '',
|
||||
'price' => 25000,
|
||||
]);
|
||||
|
||||
|
||||
Product::create([
|
||||
'name' => 'Infestation Spray',
|
||||
'description' => '',
|
||||
'price' => 50000,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user