PHP code example of needbrainz / scout-typesense-aggregator
1. Go to this page and download the library: Download needbrainz/scout-typesense-aggregator 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/ */
needbrainz / scout-typesense-aggregator example snippets
namespace App\Search;
use NeedBrainz\TypesenseAggregator\TypesenseAggregator;
class MyAggregator extends TypesenseAggregator
{
/**
* The names of the models that should be aggregated.
*
* @var string[]
*/
protected $models = [
App\Models\MyModel::class,
App\Models\MyOtherModel::class,
];
}