We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent accdedf commit 2037643Copy full SHA for 2037643
src/Jenssegers/Mongodb/MongodbServiceProvider.php
@@ -15,8 +15,10 @@ public function boot()
15
16
Model::setEventDispatcher($this->app['events']);
17
18
- $s = explode('.', \Illuminate\Foundation\Application::VERSION);
19
- define('SHOULD_RETURN_COLLECTION', (10 * $s[0] + $s[1]) >= 53);
+ if(!defined('SHOULD_RETURN_COLLECTION')) {
+ $s = explode('.', \Illuminate\Foundation\Application::VERSION);
20
+ define('SHOULD_RETURN_COLLECTION', (10 * $s[0] + $s[1]) >= 53);
21
+ }
22
}
23
24
/**
0 commit comments