PHP code example of mountainclans / livewire-phone-input

1. Go to this page and download the library: Download mountainclans/livewire-phone-input library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mountainclans / livewire-phone-input example snippets


class YourLivewireComponent extends Component
{
    use MountainClans\LivewirePhoneInput\Traits\RefreshPhoneInputs;
    
    // к примеру, после динамического появления телефонного поля в форме
    public function updatedAddPhone(): void
    {
        $this->refreshPhoneInputs();
    }
}
js
'./vendor/mountainclans/livewire-phone-input/resources/views/**/*.blade.php'