Created
December 19, 2018 12:32
-
-
Save nunomaduro/8bda20ed249142d263582040061a0ca3 to your computer and use it in GitHub Desktop.
Aggregator example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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