Skip to content

Commit

Permalink
return null instead of exception when tenant is not resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
weezqyd committed Feb 28, 2017
1 parent 5f2990e commit 4efe34e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Connnection/ConnectionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public function boot(Resolver $resolver){
} catch( \PDOException $e ) {
throw new Exceptions\TenantNotResolvedException("Tenant not resolved or does not exist");
}
catch(Exceptions\TenantNotResolvedException $errr){
// fallback to default connection
}

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

0 comments on commit 4efe34e

Please sign in to comment.