update kirby to v5 and add refresh cache panel view button
This commit is contained in:
commit
9a86d41254
466 changed files with 19960 additions and 10497 deletions
|
|
@ -65,8 +65,13 @@ return [
|
|||
'validations' => [
|
||||
'boolean',
|
||||
'required' => function ($value) {
|
||||
if ($this->isRequired() && ($value === false || $this->isEmpty($value))) {
|
||||
throw new InvalidArgumentException(I18n::translate('field.required'));
|
||||
if (
|
||||
$this->isRequired() &&
|
||||
($value === false || $this->isEmptyValue($value))
|
||||
) {
|
||||
throw new InvalidArgumentException(
|
||||
message: I18n::translate('field.required')
|
||||
);
|
||||
}
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue