-
Notifications
You must be signed in to change notification settings - Fork 1.4k
why it's not working in laravel 7.0 version #2006
New issue
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
Comments
See #1974 |
Check extension |
PS C:\xampp\htdocs\example> php -m [Zend Modules] |
@shailesh5152 install mongodb extension |
I installed it C:\Users\hp>php -m but I am also facing same problem after entering this below command composer require jenssegers/mongodb Your requirements could not be resolved to an installable set of packages. Problem 1 |
Show your composer.json, please |
{ |
I'm getting the same issue although it looks like the package needs Laravel 5.8 to 6.8:
Edit: I read through #1974 and see it won't be available to Laravel 7.x till version 4. No problem, I'll stick with MySQL for now. :) |
Does anyone have a fork with Laravel 7 compatibility added that's ready to use right now and works with the 3.6 branch? |
@vesper8 , we have using of 7 laravel in development branch, but we don't test on bugs and not implement new features |
@Smolevich Any estimation when 4.0 will be released? Is it a week away? a month? more? Thanks |
I'm having the same issue and this is as fur as I can get at the moment. There's no support for Laravel 7 apparently at the moment |
We don't discuss about time new release |
@PRINCE-254 you can use it with Laravel 7 if you change it to I've done this and haven't run into any issues yet. On a side note, I've decided to abandon using MongoDB in my project alongside MySQL. It seemed like a good idea at the time but now that Mysql 5.7 / 8 has excellent support and performance dealing with and querying JSON fields, Laravel has built-in JSON field support inside Eloquent.. and Mysql now supports GeoSpatial queries.. it's no longer worth the extra overhead and complexity of supporting MongoDB both from a Laravel point of view and from a server deployment point of view. I ported my code to a pure MySQL solution in the last two days and it was surprisingly painless and simple. I thank the developers of this excellent package over the years, it's just no longer for me going forward. |
you can use |
It gives a lots of issues
Problem 1
- mongodb/mongodb 1.6.0 requires ext-mongodb ^1.7 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.6.0 requires ext-mongodb ^1.7 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.6.0 requires ext-mongodb ^1.7 -> the requested PHP extension mongodb is missing from your system.
- Installation request for mongodb/mongodb (locked at 1.6.0, required as ^1.6) -> satisfiable by mongodb/mongodb[1.6.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run
php --ini
inside terminal to see which files are used by PHP in CLI mode.Installation failed, reverting ./composer.json to its original content.
PS C:\xampp\htdocs\example> pecl install mongodb
^CTerminate batch job (Y/N)? y
PS C:\xampp\htdocs\example> composer require jenssegers/mongodb:dev-develop
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- mongodb/mongodb 1.6.0 requires ext-mongodb ^1.7 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.6.0 requires ext-mongodb ^1.7 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.6.0 requires ext-mongodb ^1.7 -> the requested PHP extension mongodb is missing from your system.
- Installation request for mongodb/mongodb (locked at 1.6.0, required as ^1.6) -> satisfiable by mongodb/mongodb[1.6.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run
php --ini
inside terminal to see which files are used by PHP in CLI mode.Installation failed, reverting ./composer.json to its original content.
The text was updated successfully, but these errors were encountered: