PHP code example of roquie / laravel-dusk-select2

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

    

roquie / laravel-dusk-select2 example snippets


$browse->select2('@selector');

$browse->select2('@selector', 'you_text_value');

$browse->select2('@selector', ['foo', 'bar'], 5);
// the last parameter - maximum count of seconds for ajax loading before choice item.