/**
  * @param $id
  * @return mixed
  */
 public function permissions($id)
 {
     $role = $this->repository->find($id);
     $permissions = Permission::all()->pluck('display_name', 'id')->toArray();
     return view('LaravelAdmin::permissions.assign')->with('type', 'role')->with('model', $role)->with('permissions', $role->perms->pluck('id')->toArray())->with('permissionsList', $permissions)->with('activeMenu', 'sidebar.Users.Roles');
 }
 /**
  * @return array
  */
 private function createAclPermissions()
 {
     /** roles crud **/
     $rolesCrud = new Permission();
     $rolesCrud->name = 'roles-crud';
     $rolesCrud->display_name = 'Roles Crud';
     $rolesCrud->description = 'Create, update and delete roles';
     $rolesCrud->save();
     return [$rolesCrud];
 }