Skip to content

Commit 40cba48

Browse files
Update README.md
1 parent 357d633 commit 40cba48

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Laravel MongoDB
22
===============
3-
3+
This is fork supports disabling _id to id automatic conversion and disablling returning results as arrays in aggregate instead of bson object based on database configuration.
4+
'mongodb' => [
5+
'driver' => 'mongodb',
6+
'dsn' => env('DB_URI'),
7+
'database' => env('DB_NAME'),
8+
'options' => [
9+
10+
'ssl' => true,
11+
'AggregateCollectionArray'=>true, //add this to disable aggregate array
12+
'DisableAliasIdForResult'=>true, //add this to disable automatic _id conversion
13+
'tlsAllowInvalidCertificates' => true,
14+
],
15+
],
416
[![Latest Stable Version](http://img.shields.io/github/release/mongodb/laravel-mongodb.svg)](https://packagist.org/packages/mongodb/laravel-mongodb)
517
[![Total Downloads](http://img.shields.io/packagist/dm/mongodb/laravel-mongodb.svg)](https://packagist.org/packages/mongodb/laravel-mongodb)
618
[![Build Status](https://img.shields.io/github/actions/workflow/status/mongodb/laravel-mongodb/build-ci.yml)](https://github.com/mongodb/laravel-mongodb/actions/workflows/build-ci.yml)

0 commit comments

Comments
 (0)