We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39f6516 + 1183255 commit 10ee998Copy full SHA for 10ee998
src/Jenssegers/Mongodb/Auth/PasswordBrokerManager.php
@@ -9,11 +9,23 @@ class PasswordBrokerManager extends BasePasswordBrokerManager
9
*/
10
protected function createTokenRepository(array $config)
11
{
12
- return new DatabaseTokenRepository(
13
- $this->app['db']->connection(),
14
- $config['table'],
15
- $this->app['config']['app.key'],
16
- $config['expire']
17
- );
+ $laravel = app();
+
+ if (starts_with($laravel::VERSION, '5.4')) {
+ return new DatabaseTokenRepository(
+ $this->app['db']->connection(),
+ $this->app['hash'],
18
+ $config['table'],
19
+ $this->app['config']['app.key'],
20
+ $config['expire']
21
+ );
22
+ } else {
23
24
25
26
27
28
29
+ }
30
}
31
0 commit comments