aggiunto i ruoli agli utenti creati dai seeders
This commit is contained in:
@@ -22,6 +22,7 @@ class UserSeeder extends Seeder
|
|||||||
'name'=>'SystemUser',
|
'name'=>'SystemUser',
|
||||||
'email'=>'system@localhost.local',
|
'email'=>'system@localhost.local',
|
||||||
'password'=>Hash::make(Str::random(16)),
|
'password'=>Hash::make(Str::random(16)),
|
||||||
|
'user_role'=>'user',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
DB::table('users')->insert(
|
DB::table('users')->insert(
|
||||||
@@ -29,6 +30,7 @@ class UserSeeder extends Seeder
|
|||||||
'name'=>'admin',
|
'name'=>'admin',
|
||||||
'email'=>env('SYSADMIN_MAIL'),
|
'email'=>env('SYSADMIN_MAIL'),
|
||||||
'password'=>Hash::make('admin'),
|
'password'=>Hash::make('admin'),
|
||||||
|
'user_role'=>'admin',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user