We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unfortunately use laravel-mongodb outside laravel require global function app() like this
function app() { return new class() { public function version() { return '5.3'; } }; }
cause in .../jenssegers/mongodb/src/Jenssegers/Mongodb/Query/Builder function shouldUseCollections() is
/** * Returns true if Laravel or Lumen >= 5.3 * * @return bool */ protected function shouldUseCollections() { if (function_exists('app')) { $version = app()->version(); $version = filter_var(explode(')', $version)[0], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); // lumen return version_compare($version, '5.3', '>='); } }
if any other way to detect version of Illuminate\database that free app() function?
The text was updated successfully, but these errors were encountered:
it seems the root cause of #955
Sorry, something went wrong.
No branches or pull requests
unfortunately use laravel-mongodb outside laravel require global function app() like this
cause in .../jenssegers/mongodb/src/Jenssegers/Mongodb/Query/Builder function shouldUseCollections() is
if any other way to detect version of Illuminate\database that free app() function?
The text was updated successfully, but these errors were encountered: