Skip to content

Commit

Permalink
Copy over default rules constant as protected
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 5, 2022
1 parent f2bfbab commit c437373
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,14 @@ enum PublicationFieldTypes: string
case Text = 'text';
case Image = 'image';
case Tag = 'tag';

protected final const DEFAULT_RULES = [
'string' => ['required', 'string', 'between'],
'boolean' => ['required', 'boolean'],
'integer' => ['required', 'integer', 'between'],
'float' => ['required', 'numeric', 'between'],
'datetime' => ['required', 'datetime', 'between'],
'url' => ['required', 'url'],
'text' => ['required', 'string', 'between'],
];
}

0 comments on commit c437373

Please sign in to comment.