예제 #1
0
 public function getGroups()
 {
     $groups = Group::all();
     $groups->load('permissions');
     $permissions = Permission::all();
     return $this->returnLayout('cmauth::grouppermissions', ['permissions' => $permissions, 'groups' => $groups]);
 }
예제 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return $this->returnLayout('cmauth::permissions.list', ['permissions' => Permission::all()]);
 }