numberic value in laravel avlidation code example
Example 1: laravel validate integer between
'item' => 'required|integer|between:1,10',
Example 2: laravel validation
use Illuminate\Validation\Rule;
Validator::make($data, [
'email' => [
'required',
Rule::unique('users')->ignore($user->id),
],
]);