Comments (2)
If you use pgsql as the default driver, you will need to tell your mongodb model to use the mongodb connection. You do this by setting the connection attribute.
from laravel-mongodb.
Yes! thanks Jean
It works!
Just do not understand why this is not so in PHP 5.3, but that is another problem :)
from laravel-mongodb.
Related Issues (20)
- model id property returns the builder and not the id
- 🍃 Meet the MongoDB PHP Team HOT 1
- BelongsToMany sync does't use configured foreign key
- Did you mean Jenssegers\Mongodb\Query\Builder::compileWhereRaw() ? HOT 2
- id or _id not populated after calling create function #1820 HOT 8
- ObjectId in query builder not working HOT 6
- function addUpdatedAtColumn use array_merge bug HOT 1
- Cannot query with an array position HOT 2
- Add documentation on polymorphic relationships
- Fetching data via tinker HOT 2
- [Feature Request] Queryable Encryption or CSFLE HOT 1
- Call to undefined method MongoDB\Laravel\Query\Builder::compileWhereSub() HOT 2
- Is MongoDB support Laravel Octane (FrankenPHP server) HOT 1
- whereHas issue HOT 1
- Fatal casting issues HOT 1
- Saving/refreshing model doesn't reset `Model::$unset` HOT 3
- Register the Mongo driver through the make function instead of resolving function HOT 5
- Need to support upsert function in Laravel 10 HOT 1
- datetime casts not considering timezone HOT 2
- Transaction already in progress HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-mongodb.