Skip to content

Instantly share code, notes, and snippets.

@nunomaduro
Created December 19, 2018 12:32
Show Gist options
  • Select an option

  • Save nunomaduro/8bda20ed249142d263582040061a0ca3 to your computer and use it in GitHub Desktop.

Select an option

Save nunomaduro/8bda20ed249142d263582040061a0ca3 to your computer and use it in GitHub Desktop.
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,
];
}
@skille7

skille7 commented Nov 18, 2025

Copy link
Copy Markdown

App\Article::class,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment