|
|
@@ -8,17 +8,33 @@
|
|
|
|
|
|
class UserSeeder extends Seeder
|
|
|
{
|
|
|
- /**
|
|
|
- * Seed the application's database.
|
|
|
- */
|
|
|
public function run(): void
|
|
|
{
|
|
|
- $user = User::firstOrNew([
|
|
|
- 'name' => 'suporte',
|
|
|
- 'email' => 'suporte@softpar.inf.br',
|
|
|
- 'password' => 'S@ft2080.',
|
|
|
- 'user_type' => UserTypeEnum::ADMIN,
|
|
|
- ]);
|
|
|
- $user->save();
|
|
|
+ User::firstOrCreate(
|
|
|
+ ['email' => 'suporte@softpar.inf.br'],
|
|
|
+ [
|
|
|
+ 'name' => 'suporte',
|
|
|
+ 'password' => 'S@ft2080.',
|
|
|
+ 'user_type' => UserTypeEnum::ADMIN,
|
|
|
+ ]
|
|
|
+ );
|
|
|
+
|
|
|
+ User::firstOrCreate(
|
|
|
+ ['email' => 'franqueadora@gc.com.br'],
|
|
|
+ [
|
|
|
+ 'name' => 'Perfil da Franqueadora',
|
|
|
+ 'password' => 'S@ft2080.',
|
|
|
+ 'user_type' => UserTypeEnum::ADMIN,
|
|
|
+ ]
|
|
|
+ );
|
|
|
+
|
|
|
+ User::firstOrCreate(
|
|
|
+ ['email' => 'franqueado@gc.com.br'],
|
|
|
+ [
|
|
|
+ 'name' => 'Perfil do franqueado',
|
|
|
+ 'password' => 'S@ft2080.',
|
|
|
+ 'user_type' => UserTypeEnum::ADMIN_FRANCHISEE,
|
|
|
+ ]
|
|
|
+ );
|
|
|
}
|
|
|
}
|