Skip to content

Commit 4efe34e

Browse files
committedFeb 28, 2017
return null instead of exception when tenant is not resolved
1 parent 5f2990e commit 4efe34e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/Connnection/ConnectionServiceProvider.php

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function boot(Resolver $resolver){
2525
} catch( \PDOException $e ) {
2626
throw new Exceptions\TenantNotResolvedException("Tenant not resolved or does not exist");
2727
}
28+
catch(Exceptions\TenantNotResolvedException $errr){
29+
// fallback to default connection
30+
}
2831

2932
$this->publishes(array(
3033
realpath(__DIR__.'/../migrations') => database_path('migrations')

0 commit comments

Comments
 (0)
Please sign in to comment.