From 39014707d0d0018a090ed2aceb95b0c7591a5f60 Mon Sep 17 00:00:00 2001 From: Juan Eugenio Abadie Date: Sun, 22 May 2016 18:40:10 -0300 Subject: [PATCH] [5.2] Added support for custom connection in password resets (#13646) * added support for custom connection in password resets * Update PasswordBrokerManager.php --- src/Illuminate/Auth/Passwords/PasswordBrokerManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php b/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php index 76ea3cd967f2..8edcf926c16e 100644 --- a/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php +++ b/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php @@ -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']