Laravel-Phone

Demo application

This demo application allows you to test the phone validation component of the Laravel-Phone package.

Usage guidelines:

  1. The phone number's field will automatically get validated using the phone validator. Provide some additional parameters to the validator as you wish. This represents your server-side code.
  2. Enter the phone number you would like to test.
  3. Optionally enable the presence of a country field and assign it some value. By default it is named aptly so the validator will detect it automatically, but you can override its input name to omit this behavior. In this case remember to specify the field's name as a validator parameter in order to be recognized during validation.

This is a safe playground. Nothing will be stored.

Input
{{ formatAsPHPArray(response.request) }}
Validation rules
{{ formatAsPHPArray(response.rules) }}
Result
Validation passes
{{ response.exception }} Validation failed
{{ response.message }}
Server-side
Frontend form
This demo runs on