user(); if($user){ $roleToCheck = Auth()->user()->type; if (in_array($roleToCheck, RoleTypes::ADMIN_ROLES)) { return true; } } return false; } /** * @param $object * @return bool * @throws \App\Classes\Exceptions\RequestValidationException */ protected function validators($object): bool { return true; } /** * @param CompanyObject $object * @return bool */ protected function criteria($object): bool { return true; } }