Skip to content

Commit

Permalink
Catch resolving guards
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Jul 11, 2017
1 parent af98b3a commit 3723bd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DataCollector/MultiAuthCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public function collect()
$names = '';

foreach($this->guards as $guardName) {
$user = $this->resolveUser($this->auth->guard($guardName));
try {
$user = $this->resolveUser($this->auth->guard($guardName));
} catch (\Exception $e) {
continue;
}

$data['guards'][$guardName] = $this->getUserInformation($user);

Expand Down

0 comments on commit 3723bd1

Please sign in to comment.