I want to write a validateUpdate controller in Laravel and I want the user to enter the number field from -10 to 10. i use numeric but not working Thank you for your help.
protected function validateUpdate(Request $request)
{
$request->validate([
'floor' => 'numeric|max:10|required',
}