1. Go to this page and download the library: Download mtk3d/scout-sqlite-fts5 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/ */
mtk3d / scout-sqlite-fts5 example snippets
Customer::search('kowalsky')->paginate(20);
class Customer extends Model
{
use Searchable;
public function toSearchableArray(): array
{
return ['name' => $this->name, 'city' => $this->city];
}
}