A custom Laravel Nova field to handle phone numbers.
bocanhcam/nova-phone is a Laravel package for a custom laravel nova field to handle phone numbers..
It currently has 0 GitHub stars and 564 downloads on Packagist (latest version v1.0.1).
Install it with composer require bocanhcam/nova-phone.
Discover more Laravel packages by bocanhcam
or browse all Laravel packages to compare alternatives.
Last updated
A custom Laravel Nova field to handle phone numbers. This field automatically formats phone numbers as the user types, supports country-based formatting, and allows international formatting.

Install the package via Composer:
composer require bocanhcam/nova-phone
Add the phone field to your Nova resource:
\Bocanhcam\NovaPhone\Phone::make(__('Phone'), 'phone')
By default, the field uses the US as the country and national formatting.
Override the default format like below.
\Bocanhcam\NovaPhone\Phone::make(__('Phone'), 'phone')
->country('JP') // Format for Japan
->international() // Display as international number
libphonenumber-jsFor more details on libphonenumber-js, check out their documentation.
This package is open-sourced software licensed under the MIT license.