芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Acl/Repositories/AclRepository.php
get(); } public function getRoleList() { return Role::pluck('name'); } public function createRole($data) { // create a role $role = Role::create(['name' => $data['name']]); // attach all the permission to role $role->syncPermissions($data['permissions']); return $role; } public function updateRole($role, $data) { // create a role $role->update(['name' => $data['name']]); // attach all the permission to role $role->syncPermissions($data['permissions']); return $role; } }