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

drivers database connection optional #149

Open
yespbs opened this issue Aug 4, 2021 · 1 comment
Open

drivers database connection optional #149

yespbs opened this issue Aug 4, 2021 · 1 comment

Comments

@yespbs
Copy link

yespbs commented Aug 4, 2021

Please make drivers.database.connection optional in Torann\Currency\Drivers\Database.php so default connection can be loaded always.

if( $this->config('connection') ){
    $this->database = app('db')->connection($this->config('connection'));
}else{
    $this->database = app('db');
}

This will allow the package to be used in multi tenancy i.e. stancl/tenancy

@jefferose
Copy link

I'm facing this challenge now - have you solved this at all?

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