Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
6e4520dd
Commit
6e4520dd
authored
Apr 18, 2017
by
dees040
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check version
parent
b89cc895
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
PasswordBrokerManager.php
src/Jenssegers/Mongodb/Auth/PasswordBrokerManager.php
+18
-7
No files found.
src/Jenssegers/Mongodb/Auth/PasswordBrokerManager.php
View file @
6e4520dd
...
@@ -9,6 +9,9 @@ class PasswordBrokerManager extends BasePasswordBrokerManager
...
@@ -9,6 +9,9 @@ class PasswordBrokerManager extends BasePasswordBrokerManager
*/
*/
protected
function
createTokenRepository
(
array
$config
)
protected
function
createTokenRepository
(
array
$config
)
{
{
$laravel
=
app
();
if
(
starts_with
(
$laravel
::
VERSION
,
'5.4'
)
{
return
new
DatabaseTokenRepository
(
return
new
DatabaseTokenRepository
(
$this
->
app
[
'db'
]
->
connection
(),
$this
->
app
[
'db'
]
->
connection
(),
$this
->
app
[
'hash'
],
$this
->
app
[
'hash'
],
...
@@ -16,5 +19,13 @@ class PasswordBrokerManager extends BasePasswordBrokerManager
...
@@ -16,5 +19,13 @@ class PasswordBrokerManager extends BasePasswordBrokerManager
$this
->
app
[
'config'
][
'app.key'
],
$this
->
app
[
'config'
][
'app.key'
],
$config
[
'expire'
]
$config
[
'expire'
]
);
);
}
else
{
return
new
DatabaseTokenRepository
(
$this
->
app
[
'db'
]
->
connection
(),
$config
[
'table'
],
$this
->
app
[
'config'
][
'app.key'
],
$config
[
'expire'
]
);
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment