diff --git a/packages/framework/src/Framework/Features/Publications/Concerns/PublicationFieldTypes.php b/packages/framework/src/Framework/Features/Publications/Concerns/PublicationFieldTypes.php index d8519c4d838..7d0a436fa47 100644 --- a/packages/framework/src/Framework/Features/Publications/Concerns/PublicationFieldTypes.php +++ b/packages/framework/src/Framework/Features/Publications/Concerns/PublicationFieldTypes.php @@ -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'], + ]; }