Answers for "laravel float validation"

PHP
1

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'
  ];
}
Posted by: Guest on January-14-2021
2

laravel validate integer between

'item' => 'required|integer|between:1,10',
Posted by: Guest on October-21-2020

Code answers related to "laravel float validation"

Browse Popular Code Answers by Language