GRAB X APOTEK X Hospital PORTAL
This commit is contained in:
@@ -91,12 +91,21 @@ class PermissionTableSeeder extends Seeder
|
||||
'user-role-list-client-portal',
|
||||
'user-access-list-client-portal'
|
||||
]
|
||||
]
|
||||
],
|
||||
####################### HOSPITAL PORTAL #########################
|
||||
[
|
||||
'type' => 'hospital-portal',
|
||||
'datas' => [
|
||||
'dashboard-hospital-portal',
|
||||
'dashboard-claim-hospital-portal',
|
||||
'dashboard-apotek-portal',
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($permissions as $values) {
|
||||
foreach ($values['datas'] as $value) {
|
||||
Permission::updateOrCreate(['name' => $value],
|
||||
Permission::updateOrCreate(['name' => $value, 'guard_name' => $values['type']],
|
||||
[
|
||||
'name' => $value,
|
||||
'guard_name' => $values['type']
|
||||
|
||||
Reference in New Issue
Block a user