Skip to content

LaravelTicketServiceProvider is not connecting to the database #5

@hickey

Description

@hickey

I am relatively new to using Laravel (just a couple of weeks) so I may be not handling things correctly. Another consideration is that I am using MongoDB as the database backend and I already have to replace Illuminate\Database\Eloquent\Models with MongoDB\Laravel\Eloquent\Model in laravel-permissions. I have done the same in the Models file.

In the LaravelTicketSystemProvider::boot() function a call is made to InstallController::inactiveMigrations() to retrieve a list of the migrations in the database which fails when the DB::select() attempts to read from the database. With a bunch of debugging I have determined that the root cause of the failure is that the reconnector property of Illuminate\Database\Connection is not getting set which caused the select() call to fail due to no database connection.

So I am not certain if this failure is due to using MongoDB instead of the traditional PostgreSQL or MySQL database. The other question that occurs to me is if laravel-ticket works on prior versions of Laravel but has some incompatibility with Laravel v10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions