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

Make DB connection optional #290

Merged
merged 3 commits into from
Jan 26, 2023
Merged

Conversation

lentex
Copy link

@lentex lentex commented Jan 26, 2023

Until now Ray did not work when the Laravel project did not use a DB connection (by disabling the DatabaseServiceProvider). That case resulted in a Target class [db] does not exist. exception. To solve this, checks are introduced to just ignore the DB watchers.

See: spatie/ray#771

Alexander Lentner and others added 3 commits January 26, 2023 12:28
Until now Ray did not work when the Laravel project did not use a DB
connection (by disabling the DatabaseServiceProvider). That case
resulted in a `Target class [db] does not exist.` exception. To solve
this, checks are introduced to just ignore the DB watchers.

See: spatie/ray#771
@freekmurze freekmurze merged commit b1dfa5b into spatie:main Jan 26, 2023
@freekmurze
Copy link
Member

Great PR, thanks!

crynobone added a commit to crynobone/laravel-ray that referenced this pull request Mar 23, 2023
- additional improvements to spatie#290

Internally, `DB::listen()` is equivalent to calling `app('db')->connection()->listen()` which initiate a database connection and cause issue such as larastan/larastan#1588

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants