Skip to content

Commit

Permalink
Ensure guest_num and duration have minimum values (#1001)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
ryanmitchell and sampoyigi authored Jul 5, 2022
1 parent 4635985 commit a3f024a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/admin/requests/Reservation.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public function rules()
'telephone' => ['sometimes'],
'reserve_date' => ['required', 'valid_date'],
'reserve_time' => ['required', 'valid_time'],
'guest_num' => ['required', 'integer'],
'guest_num' => ['required', 'integer', 'min:1'],
'duration' => ['integer', 'min:1'],
];
}
}

0 comments on commit a3f024a

Please sign in to comment.