PHP code example of josedaian / select2wire
1. Go to this page and download the library: Download josedaian/select2wire 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/ */
josedaian / select2wire example snippets
use Livewire\Component;
use JoseDaian\Select2\Traits\HasSelect2Wire;
class ExampleComponent extends Component
{
use HasSelect2Wire;
}
public function customInitFunction()
{
// your code
$this->initSelect2();
}