Skip to content

Commit

Permalink
[5.6] change error message for auth driver not defined (#23455)
Browse files Browse the repository at this point in the history
* change error message wording to make it clear that the driver is not defined

* include the name of the undefined driver in error
  • Loading branch information
James Judd authored and taylorotwell committed Mar 9, 2018
1 parent d533c04 commit 5c32899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/AuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function resolve($name)
return $this->{$driverMethod}($name, $config);
}

throw new InvalidArgumentException("Auth guard driver [{$name}] is not defined.");
throw new InvalidArgumentException("Auth driver [{$config['driver']}] for guard [{$name}] is not defined.");
}

/**
Expand Down

0 comments on commit 5c32899

Please sign in to comment.