Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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'
  ];
}
 
PREVIOUS NEXT
Tagged: #laravel #validation #types #float
ADD COMMENT
Topic
Name
7+1 =