Skip to content

Commit

Permalink
Menu priority rule (#1050)
Browse files Browse the repository at this point in the history
Priority cannot be null, change rule to 'min:0'
  • Loading branch information
Concreta09 authored Sep 27, 2023
1 parent 502b49b commit e4ed076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/requests/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
];
}
}

0 comments on commit e4ed076

Please sign in to comment.