chapdel/laravel-tel-input
Laravel Tel Input provides a ready-made telephone number input for Laravel forms and Blade views, handling formatting and validation so you can add phone fields without custom JavaScript. A small helper package for consistent, user-friendly phone entry.
Start by confirming v2.0 compatibility with your Laravel/PHP versions, then install and publish:
composer require chapdel/laravel-tel-input
php artisan vendor:publish --tag=tel-input-config
php artisan vendor:publish --tag=tel-input-assets
Look first at config/tel-input.php, the package README, and src/View/Components / src/Rules to see the exact v2.0 component and rule names. The first practical use case is a single phone field in a form:
<x-tel-input name="phone" :value="old('phone')" />
Pair it with the package’s validation rule (check the v2.0 signature) and always keep a server-side rule as the source of truth. If you use Livewire, bind with wire:model and plan for re-initialization after DOM updates.
wire:ignore where necessary, sync the full number to a public property via an event or x-on:change, and reinitialize the widget after Livewire morphs the DOM.utils.js loading, and validation behavior.php artisan config:clear and re-check config/tel-input.php if country lists or asset paths seem ignored.wire:ignore or reinitialize the intl-tel-input instance explicitly.window.intlTelInput instances, check the network panel for the intl-tel-input utils/script, and confirm CSS/flag sprite paths resolve from your published assets.How can I help you explore Laravel packages today?