PHP code example of fabioguin / livewire-searchable-select
1. Go to this page and download the library: Download fabioguin/livewire-searchable-select 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/ */
fabioguin / livewire-searchable-select example snippets
namespace App\Http\Livewire\CreateUser
use Livewire\Component;
use FabioGuin\LivewireSearchableSelect\SearchableSelect;
class CreateUser extends Component
{
use SearchableSelect;
// set properties to get selected value from LivewireSearchableSelect
public int $country_id;
}