Answers for "laravel validation rule not exists"

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
1

laravel exists validation

'state_id' => 'exists:states,id'
Posted by: Guest on January-18-2021

Code answers related to "laravel validation rule not exists"

Browse Popular Code Answers by Language