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
49eb85cb
Commit
49eb85cb
authored
Aug 02, 2016
by
pi0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check SHOULD_RETURN_COLLECTION is not defined
parent
5706ed38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
MongodbServiceProvider.php
src/Jenssegers/Mongodb/MongodbServiceProvider.php
+4
-2
No files found.
src/Jenssegers/Mongodb/MongodbServiceProvider.php
View file @
49eb85cb
...
@@ -15,9 +15,11 @@ class MongodbServiceProvider extends ServiceProvider
...
@@ -15,9 +15,11 @@ class MongodbServiceProvider extends ServiceProvider
Model
::
setEventDispatcher
(
$this
->
app
[
'events'
]);
Model
::
setEventDispatcher
(
$this
->
app
[
'events'
]);
if
(
!
defined
(
'SHOULD_RETURN_COLLECTION'
))
{
$s
=
explode
(
'.'
,
\Illuminate\Foundation\Application
::
VERSION
);
$s
=
explode
(
'.'
,
\Illuminate\Foundation\Application
::
VERSION
);
define
(
'SHOULD_RETURN_COLLECTION'
,
(
10
*
$s
[
0
]
+
$s
[
1
])
>=
53
);
define
(
'SHOULD_RETURN_COLLECTION'
,
(
10
*
$s
[
0
]
+
$s
[
1
])
>=
53
);
}
}
}
/**
/**
* Register the service provider.
* Register the service provider.
...
...
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