PHP code example of victorybiz / laravel-tel-input

1. Go to this page and download the library: Download victorybiz/laravel-tel-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/ */

    

victorybiz / laravel-tel-input example snippets


  class ContactPage extends Component
  {
      public $showQuickContactForm = false;

      public function toggleQuickContactForm()
      {
          $this->showQuickContactForm = !$this->showQuickContactForm;

          if ($this->showQuickContactForm) {
              $this->dispatchBrowserEvent('telDOMChanged'); // in Livewire 2
              $this->dispatch('telDOMChanged'); // in Livewire 3
          }
      }
      //...
  }