Skip to content

Instantly share code, notes, and snippets.

@nunomaduro nunomaduro/News.php
Created Dec 19, 2018

Embed
What would you like to do?
Aggregator example
<?php
namespace App\Search;
use Algolia\ScoutExtended\Searchable\Aggregator;
class News extends Aggregator
{
/**
* The names of the models that should be aggregated.
*
* @var string[]
*/
protected $models = [
\App\Event::class,
\App\Article::class,
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.