mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
Migrate to HTMX (#114)
Dropped Livewire Added HTMX Added Blade code lint Drop Mysql and Redis Migrate to SQLite
This commit is contained in:
@ -7,9 +7,16 @@
|
||||
|
||||
class CronRule implements Rule
|
||||
{
|
||||
private bool $acceptCustom;
|
||||
|
||||
public function __construct(bool $acceptCustom = false)
|
||||
{
|
||||
$this->acceptCustom = $acceptCustom;
|
||||
}
|
||||
|
||||
public function passes($attribute, $value): bool
|
||||
{
|
||||
return CronExpression::isValidExpression($value);
|
||||
return CronExpression::isValidExpression($value) || ($this->acceptCustom && $value === 'custom');
|
||||
}
|
||||
|
||||
public function message(): string
|
||||
|
Reference in New Issue
Block a user