add default data for databaseseeder

master
Nadim Salloum 2023-12-20 22:49:10 +01:00
parent 4bded4db0b
commit 3f0ab15f56
Signed by untrusted user who does not match committer: nadim
GPG Key ID: 649BDF978504C1D1
1 changed files with 6 additions and 6 deletions

12
database/seeders/DatabaseSeeder.php Normal file → Executable file
View File

@ -36,20 +36,20 @@ class DatabaseSeeder extends Seeder
User::factory()->create([
'name' => 'Nadim Salloum',
'email' => env('USER_1_EMAIL'),
'password' => bcrypt(env('USER_1_PW')),
'email' => env('USER_1_EMAIL', 'test@test.ch'),
'password' => bcrypt(env('USER_1_PW', 'abc123')),
]);
User::factory()->create([
'name' => 'Mohamad Salloum',
'email' => env('USER_2_EMAIL'),
'password' => bcrypt(env('USER_2_PW')),
'email' => env('USER_2_EMAIL', 'test2@test.ch'),
'password' => bcrypt(env('USER_2_PW', 'abc123')),
]);
User::factory()->create([
'name' => 'Nadim Salloum',
'email' => env('USER_3_EMAIL'),
'password' => bcrypt(env('USER_3_PW')),
'email' => env('USER_3_EMAIL', 'test3@test.ch'),
'password' => bcrypt(env('USER_3_PW', 'abc123')),
]);
foreach ($this->getBrands() as $brandItem) {