Skip to content

Commit

Permalink
[5.2] Added support for custom connection in password resets (#13646)
Browse files Browse the repository at this point in the history
* added support for custom connection in password resets

* Update PasswordBrokerManager.php
  • Loading branch information
Juan Eugenio Abadie authored and taylorotwell committed May 22, 2016
1 parent 6c18818 commit 3901470
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Auth/Passwords/PasswordBrokerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ protected function createTokenRepository(array $config)
$key = base64_decode(substr($key, 7));
}

$connection = isset($config['connection']) ? $config['connection'] : null;

return new DatabaseTokenRepository(
$this->app['db']->connection(),
$this->app['db']->connection($connection),
$config['table'],
$key,
$config['expire']
Expand Down

0 comments on commit 3901470

Please sign in to comment.