Skip to content

Commit 76b8655

Browse files
committed
Backward compability
1 parent fe278ac commit 76b8655

File tree

2 files changed

+97
-103
lines changed

2 files changed

+97
-103
lines changed

src/Jenssegers/Mongodb/MongodbServiceProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ public function boot()
1414
Model::setConnectionResolver($this->app['db']);
1515

1616
Model::setEventDispatcher($this->app['events']);
17+
18+
$s=explode('.',\Illuminate\Foundation\Application::VERSION);
19+
define('SHOULD_RETURN_COLLECTION',(10*$s[0]+$s[1])>=53);
1720
}
1821

1922
/**

0 commit comments

Comments
 (0)