Skip to content
Ivan Babenko edited this page Jan 8, 2022 · 2 revisions

Note, that the package wasn't designed to be used with Lumen framework, therefore it's not guaranteed, that you won't encounter any bugs or side effects. If you want to proceed anyway, follow the instructions below:

  • Install Elastic Scout Driver as described here

  • Require the package with Composer

composer require babenkoivan/elastic-scout-driver-plus
  • Register container bindings under the Register Container Bindings section in bootstrap/app.php
foreach ((new ElasticScoutDriverPlus\ServiceProvider($app))->bindings as $abstract => $concrete) {
    $app->bind($abstract, $concrete);
}

$app->extend(ElasticScoutDriver\Engine::class, function (Laravel\Scout\Engines\Engine $engine) use ($app) {
    return $app->make(ElasticScoutDriverPlus\Engine::class, compact('engine'));
});
Clone this wiki locally