Closed
Description
I'd love to use this package with Laravel Lumen. When running the migration I get:
lumen.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function ScoutEngines\Postgres\resolve() in customer/Api/vendor/pmatseykanets/laravel-scout-postgres/src/PostgresEngineServiceProvider.php:12
If i changed to this I got the migrate working:
$this->app->configure('scout');
$this->app->singleton(EngineManager::class, function ($app) {
return (new EngineManager($app))->extend('pgsql', function ($app) {
return new PostgresEngine($this->app['db'], config('scout.pgsql', []));
});
});
Is it possible to use with Lumen?
Metadata
Metadata
Assignees
Labels
No labels