From e4ed0765af8e76b531fe5809481767d66e94226b Mon Sep 17 00:00:00 2001 From: Luca Benati <97920581+Concreta09@users.noreply.github.com> Date: Wed, 27 Sep 2023 19:29:41 +0200 Subject: [PATCH] Menu priority rule (#1050) Priority cannot be null, change rule to 'min:0' --- app/admin/requests/Menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/requests/Menu.php b/app/admin/requests/Menu.php index 7722ed4b61..509a5fbd28 100644 --- a/app/admin/requests/Menu.php +++ b/app/admin/requests/Menu.php @@ -38,7 +38,7 @@ public function rules() 'order_restriction.*' => ['nullable', 'string'], 'menu_status' => ['boolean'], 'mealtime_id' => ['nullable', 'integer'], - 'menu_priority' => ['nullable', 'integer'], + 'menu_priority' => ['min:0', 'integer'], ]; } }