laravel-currency icon indicating copy to clipboard operation
laravel-currency copied to clipboard

drivers database connection optional

Open yespbs opened this issue 4 years ago • 1 comments

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

yespbs avatar Aug 04 '21 07:08 yespbs

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

jefferose avatar Dec 27 '22 07:12 jefferose