PHP code example of highsolutions / laravel-searchy
1. Go to this page and download the library: Download highsolutions/laravel-searchy 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/ */
$users = Searchy::users('first_name::last_name')->query('John Smith')->select('first_name')->get();
// Or you can swap those around...
$users = Searchy::users('first_name::last_name')->select('first_name')->query('John Smith')->get();