Skip to content

Use with Lumen #7

Closed
Closed
@jake142

Description

@jake142

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions