feat: add global super admin to development seeder
This commit is contained in:
@@ -34,6 +34,22 @@ class DevelopmentSeeder extends Seeder
|
||||
{
|
||||
$password = Hash::make('password1');
|
||||
|
||||
// 0. Super Admin (Global / Tenant-less)
|
||||
$super = User::firstOrCreate(
|
||||
['email' => 'super@verde.local'],
|
||||
[
|
||||
'phone' => '+639000000000',
|
||||
'password' => $password,
|
||||
'first_name' => 'System',
|
||||
'last_name' => 'Super Admin',
|
||||
'role' => 'super_admin',
|
||||
'status' => User::STATUS_ACTIVE,
|
||||
'tenant_id' => null,
|
||||
'email_verified_at' => now(),
|
||||
]
|
||||
);
|
||||
$super->syncRoles(['super_admin']);
|
||||
|
||||
$lguConfigs = [
|
||||
['code' => 'SPB', 'name' => 'San Pascual, Batangas'],
|
||||
['code' => 'BAU', 'name' => 'Bauan, Batangas'],
|
||||
|
||||
Reference in New Issue
Block a user