I have a Device.php model with $dates = ['status_updated_at']. I'd like to bulk update devices with Carbon::now(). I've tried with the following, wh ...
I have a Device.php model with $dates = ['status_updated_at']. I'd like to bulk update devices with Carbon::now(). I've tried with the following, wh ...
. Answers to this question are eligible for a +50 reputation bounty. ms ...
I want to update documents and decrement specific column value. it is possible to use Model::where('','')->update(['count' => \DB::raw('count- 1 ...
composer install package jenssegers/mongodb I have a list of documents in which there is a date field as follows ISODate("2020-05-28T06:34:23.000Z") ...
I'm currently trying to create a eloquent relationship between two models in my database, one in sql and on in mongodb: <?php namespace App\Model ...
How can we retrieve the size of an array in the laravel-mongodb's get() function? Update: Ultimately, I want to get the size of the array column for ...
Query to get monthly orders (total orders per month(count) or total sales per month(sum)): Tried this query, but it is not working. Also tried with ot ...
i have laravel 8 project with jenssegers (Mongodb Database) but my hasMany relationship not work between Product & Category Model my Product mongo ...
getting the above error when i run $bucket with $group in mongodb laravel. input collection: output: need to group all data based on competitio ...
I need to update or create if not exist, specific obj,set score.b1 =50 and total=100 where object match curse=5 block=2 I can update all obj but I ...
I have a collection of employees containing employee data and some events with start and end times... I want to query data in order to get a subset of ...
I need to configure mongoDB into laravel, for that I have installed MongoDB in my machine, and also enabled PHP extension for MongoDB. Then I wrote ...
Laravel Version: 7.16.1 PHP Version: 7.4 Database Driver & Version: "jenssegers/mongodb": "4.0.0-alpha.1" I have a queue application that I call ...
I migrated my database from Sql Server to MongoDB I want to Join existing customer Table with contact Table . Customer have multiple contacts . I tr ...