jenssegers-mongodb Questions

2

Solved

I have a MongoDB collection called changes which contains the following data { "date" : ISODate("2014-06-09T00:00:00.000Z"), "field" : "ip", "from&qu...
Schermerhorn asked 10/6, 2014 at 13:57

5

In Laravel I have got this error, while inserting a record in my MongoDB database. Call to a member function prepare() on null namespace App\Http\Controllers; use App\Employee; use Illuminate\Ht...
Scrobiculate asked 7/3, 2019 at 10:51

1

Solved

I am new to Laravel. I want to connect to MongoDB using Laravel 10 which require jenssegers/mongodb to be installed. When I run command composer require jenssegers/mongodb 3.8.0 --ignore-platform-r...
Endometrium asked 27/2, 2023 at 7:55

3

Solved

So I've managed to do a clean install of Laravel in Windows using WSL2. One of the requirements of my project is to have two databases running at the same time mysql and mongodb. I added an image o...

3

I am working on laravel 5.1 and using jessenger mongodb package. I am using raw query to fetch data but i am confused how to use date with that as currently it is returning null result. $resultSe...
Popular asked 11/2, 2016 at 6:44

4

Solved

I'am starting with Mongodb atlas and i trying to connect my laravel/jenssegers project to the cluster i config my conf/database 'mongodb' => [ 'driver' => 'mongodb', 'host' => env('DB_H...
Pessimist asked 7/7, 2017 at 21:4

2

I am trying to use a belongsToMany relation, in the following way: Model with belongsToMany relation: namespace App\Models; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiToke...
Cinchona asked 7/6, 2018 at 12:37

0

I'm mainly working on two models right now, Form and Notification, and a many-to-many relationship is set up and working for most Eloquent commands, except for whereHas and has. Both just return an...
Kimikokimitri asked 24/2, 2017 at 3:21

1

I'm trying to setup some simple favoriting for my app using Laravel/Jenssegers MongoDB I have two models: class Item { public function favorites() { return $this->hasMany('App\Models\User'...
Montespan asked 6/4, 2016 at 5:26
1

© 2022 - 2025 — McMap. All rights reserved.