acceptCustom = $acceptCustom; } public function passes($attribute, $value): bool { return CronExpression::isValidExpression($value) || ($this->acceptCustom && $value === 'custom'); } public function message(): string { return __('Invalid frequency'); } }