mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\ValidationRules;
|
||||
|
||||
use Closure;
|
||||
use Cron\CronExpression;
|
||||
use Illuminate\Contracts\Validation\ValidationRule;
|
||||
|
||||
@ -9,7 +10,7 @@ class CronRule implements ValidationRule
|
||||
{
|
||||
public function __construct(private readonly bool $acceptCustom = false) {}
|
||||
|
||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void
|
||||
{
|
||||
if (CronExpression::isValidExpression($value)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user