laravel-currency
laravel-currency copied to clipboard
drivers database connection optional
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
I'm facing this challenge now - have you solved this at all?