3 namespace BookStack\Console\Commands;
5 use BookStack\Services\SearchService;
6 use Illuminate\Console\Command;
8 class RegenerateSearch extends Command
11 * The name and signature of the console command.
15 protected $signature = 'bookstack:regenerate-search';
18 * The console command description.
22 protected $description = 'Command description';
24 protected $searchService;
27 * Create a new command instance.
29 * @param SearchService $searchService
31 public function __construct(SearchService $searchService)
33 parent::__construct();
34 $this->searchService = $searchService;
38 * Execute the console command.
42 public function handle()
44 $this->searchService->indexAllEntities();