芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/database/seeders/RoleSeeder.php
name = 'Manager'; $role->company_id = $companyId; $role->display_name = 'Manager'; $role->save(); $roleId = $role->id; $permissions = Permission::whereHas('module', function ($query) { $query->withoutGlobalScopes()->where('is_superadmin', '0'); })->get(); $role = Role::findOrFail($roleId); $role->perms()->sync([]); $role->attachPermissions($permissions); } }