Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaravelTicketServiceProvider is not connecting to the database #5

Open
hickey opened this issue Apr 13, 2024 · 1 comment
Open

LaravelTicketServiceProvider is not connecting to the database #5

hickey opened this issue Apr 13, 2024 · 1 comment

Comments

@hickey
Copy link

hickey commented Apr 13, 2024

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.

@samberrry
Copy link
Member

Hey,
Thsnks for reporting, most parts have been migrated to 10 but it's partially working with laravel 10 version, Im still wotking on it to make it fully compatible. Have a super day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants