PHP code example of assemble / eloquentsearch
1. Go to this page and download the library: Download assemble/eloquentsearch 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/ */
assemble / eloquentsearch example snippets
/*
* Searchable Fields
*/
public $searchable = [
'name', 'user_id', // fields
'user', 'tags', // relations
];
php
Assemble\EloquentSearch\EloquentSearchServiceProvider::class,
php
'EloquentSearch' => Assemble\EloquentSearch\Facades\EloquentSearcher::class,