required if present laravel code example
Example 1: numbric validate laravel
$rules = ['Fno' => 'numeric|min:2|max:5', 'Lno' => 'numeric|min:2'];
Example 2: email validation in laravel
'email' => 'required|email|unique:users,email',
//@sujay
Example 3: laravel validation types for float
//For float, must use numeric validator
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'field' => 'numeric'
];
}