yoeriboven / laravel-log-db

A database driver for logging with Laravel
MIT License
45 stars 13 forks source link

Custom DB Connection #5

Closed victayo closed 1 month ago

victayo commented 2 years ago

Enable users to set a DB connection for the model and migration. This is useful if a project has multiple DB connections and the DB for logging is not the default DB

yoeriboven commented 2 years ago

Thanks for the PR. I made some changes.

Haven't been able to test it on different connections so could you do that?

Please try with the default connection and then with the environment variable set.

yoeriboven commented 1 year ago

If anyone is looking for this functionality please test this branch if it works. If it does I will merge it and release it.

PetrKaterinak commented 1 month ago

Which branch? Tried composer require yoeriboven/laravel-log-db:dev-main and it is not present there

yoeriboven commented 1 month ago

This PR.

inDeev commented 1 month ago

I was not able to find how PR could be required by composer. So I decided to put files directly into my project and with custom db connections it works just fine. I'm using stancl/tenancy And I want to log anything in Central DB, without this PR it doesn't worked

yoeriboven commented 1 month ago

Merged and released. Please require 1.3 in your projects.