Compare commits

..

2 Commits

Author SHA1 Message Date
Nadim Salloum 3f0ab15f56
add default data for databaseseeder 2023-12-20 22:49:10 +01:00
Nadim Salloum 4bded4db0b
update example env to add user and DB FORWARD 2023-12-20 22:48:22 +01:00
2 changed files with 11 additions and 7 deletions

6
.env.example Normal file → Executable file
View File

@ -1,8 +1,11 @@
APP_NAME="Your SwissCar GmbH - AutoManager" APP_NAME="Your SwissCar GmbH - AutoManager"
APP_ENV=local APP_ENV=local
APP_KEY=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://automngr.test APP_URL=http://automngr.test
APP_PORT=80
USER_1_EMAIL=test@salloum.pm
USER_1_PW=abc123
LOG_CHANNEL=stack LOG_CHANNEL=stack
LOG_LEVEL=debug LOG_LEVEL=debug
@ -13,6 +16,7 @@ DB_PORT=3306
DB_DATABASE=automngr DB_DATABASE=automngr
DB_USERNAME="sail" DB_USERNAME="sail"
DB_PASSWORD="password" DB_PASSWORD="password"
FORWARD_DB_PORT=3306
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file

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

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