public function getForAuthority(Model $authority, $allowed = true) { return Models::ability()->whereExists($this->getRoleConstraint($authority, $allowed))->orWhereExists($this->getAuthorityConstraint($authority, $allowed))->get(); }