use validation in laravel api code example
Example 1: email validation in laravel
'email' => 'required|email|unique:users,email',
//@sujay
Example 2: laravel validate integer between
'item' => 'required|integer|between:1,10',
'email' => 'required|email|unique:users,email',
//@sujay
'item' => 'required|integer|between:1,10',