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

Laravel Totem Initiates Database Connection During Package Discovery #385

Open
jevgenijsblaus opened this issue Jul 24, 2024 · 1 comment

Comments

@jevgenijsblaus
Copy link

Hello,

I've encountered an issue with the Laravel Totem package while developing with Laravel. Totem attempts to establish a database connection when running the @php artisan package:discover --ansi command during Composer's post-autoload-dump scripts.

This behavior results in an error when the database (in my case, an SQLite database) does not yet exist:

Illuminate\Database\QueryException
Database file at path [/app/database/database.sqlite] does not exist. Ensure this is an absolute path to the database.

Could there perhaps be a way to delay Totem's database connection to a point where the entire application is fully set up and the database is guaranteed to be ready for a connection request?

Thank you for your help and consideration.

@toshiakikohama
Copy link

I have same issue
anyone knows about it?
I'd like to solve it as soon as i can

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