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