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
10ee998b
Commit
10ee998b
authored
Sep 05, 2017
by
Jens Segers
Committed by
GitHub
Sep 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1162 from dees040/master
Added missing dependency
parents
39f6516a
1183255d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
PasswordBrokerManager.php
src/Jenssegers/Mongodb/Auth/PasswordBrokerManager.php
+18
-6
No files found.
src/Jenssegers/Mongodb/Auth/PasswordBrokerManager.php
View file @
10ee998b
...
@@ -9,11 +9,23 @@ class PasswordBrokerManager extends BasePasswordBrokerManager
...
@@ -9,11 +9,23 @@ class PasswordBrokerManager extends BasePasswordBrokerManager
*/
*/
protected
function
createTokenRepository
(
array
$config
)
protected
function
createTokenRepository
(
array
$config
)
{
{
return
new
DatabaseTokenRepository
(
$laravel
=
app
();
$this
->
app
[
'db'
]
->
connection
(),
$config
[
'table'
],
if
(
starts_with
(
$laravel
::
VERSION
,
'5.4'
))
{
$this
->
app
[
'config'
][
'app.key'
],
return
new
DatabaseTokenRepository
(
$config
[
'expire'
]
$this
->
app
[
'db'
]
->
connection
(),
);
$this
->
app
[
'hash'
],
$config
[
'table'
],
$this
->
app
[
'config'
][
'app.key'
],
$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