Skip to content

Instantly share code, notes, and snippets.

@nunomaduro
Created December 19, 2018 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunomaduro/a186f0409b1ec224367616e03debdf46 to your computer and use it in GitHub Desktop.
Save nunomaduro/a186f0409b1ec224367616e03debdf46 to your computer and use it in GitHub Desktop.
Register Aggregator
<?php
namespace App\Providers;
use App\Search\News;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
News::bootSearchable();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment