Questions tagged [jenssegers-mongodb]

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

An Eloquent model and Query builder with support for MongoDB, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.

GitHub Link

192 questions
0
votes
1 answer

Advance where in laravel jenssegers

My document in mongodb database is like below { "_id": ObjectId("545a20208e227b4c42601601"), "polish": NumberLong(3), "symmetry": NumberLong(1), "certy_no": "6175554509", "certy_name": "541bfa1d3d1784380600002f", "desc": "Fancy…
Nishchit
  • 18,284
  • 12
  • 54
  • 81
0
votes
1 answer

How to install MongoDB on amazon linux and connect it to Laravel-jenssegers MongoDB?

I followed this for installing mongodb on Amazon Linux. I have a laravel project to host on my amazon Linux server. Jenssegers mongoDB is already installed in the framework while developing the web app (in Ubuntu). The web app was developed in…
0
votes
1 answer

jenssegers/mongodb migrations for creating unique index on multiple fields

I need to create a Laravel migration for a unique key on multiple fields. The Mongodb command i want to map is something like this: db.collection.ensureIndex( { a: 1, b: 1 }, { unique: true }) Is it possible with jenssegers/mongodb or with another…
0
votes
2 answers

Extending Ardent from jenssegers/laravel-mongodb

How do I get Ardent to extend from jenssegers/laravel-mongodb without editing the Ardent.php and replacing the use Illuminate\Database\Eloquent\Model; statement?? Any clean way to achieve this?
0
votes
1 answer

Laravel 4 Mongodb (jenssegers' driver) storing tags as array of strings - without indexes

If anyone have more experience using Jens Seger's Laravel Mongo Package (https://github.com/jenssegers/laravel-mongodb) please help me out. I have jenssegers mongodb 'eloquent' model Performer, I want my document to look something like this…
TrueStory
  • 439
  • 5
  • 17
0
votes
1 answer

get _id using groupBy with Laravel MongoDB by jenssegers

I am currently having trouble getting the value of _id when I use either groupBy or distinct. The values of groupBy/distinct replaces the value of _id. how do I use the library properly to achieve this? here is the…
0
votes
2 answers

Retrieving and displaying MongoDB document content in Laravel 4 with Jenssegers Laravel library

I am new to Laravel. I am using the Jenssegers Laravel library, an eloquent model and query builder with support for MongoDB. In my database, I created the document below. I am trying to show on the browser the content of the document but I am not…
0
votes
1 answer

Laravel 4 jenssegers-mongodb - how can I implement Auth with facebook

I need help now I can't login with facebook let's see my code. $code = Input::get('code'); if (strlen($code) == 0) return Redirect::to('/')->with('message', 'There was an error communicating with Facebook'); $facebook = new…
0
votes
4 answers

Laravel-MongoDB "Class db does not exist" error

I am trying to install jenssegers Laravel-MongoDB bundle. (https://github.com/jenssegers/Laravel-MongoDB) When I try composer update I get following error: "error":{"type:"ReflectionException","message":"Classs db does not…
higert
  • 1
  • 2
-1
votes
1 answer

Jenssegers - How to find all documents in collection with ID

I have collections of Books and Users. Each book has a user_id which is the ObjectId of a User. When a user is logged in I want to list all of their books. How could I find all documents in the books collection with a user_id equal to the currently…
-1
votes
1 answer

Fix Mongo query in Lumen

I have a query in the lumen. But it does not work. The query is : return Order::whereBetween('source_longitude', [$minLon_try_one, $maxLon_try_one]) ->whereBetween('source_latitude',[51.365807806703,51.454384193297]) …
bitcodr
  • 1,395
  • 5
  • 21
  • 44
-1
votes
1 answer

Use Mongo query in Lumen

I use jenssegers/laravel-mongodb package in my project. my project developed with Laravel Lumen micro framework, now how can i use blow mongo query with jenssegers/laravel-mongodb package in lumen db.orders.aggregate([ { '$match': { …
bitcodr
  • 1,395
  • 5
  • 21
  • 44
1 2 3
12
13