You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-52
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,11 @@ Laravel MongoDB
8
8
9
9
This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*
10
10
11
+
This package was renamed to `mongodb/laravel-mongodb` because of a transfer of ownership to MongoDB, Inc.
12
+
It is compatible with Laravel 10.x. For older versions of Laravel, please refer to the [old versions](https://github.com/mongodb/laravel-mongodb/tree/3.9#laravel-version-compatibility).
13
+
11
14
-[Laravel MongoDB](#laravel-mongodb)
12
15
-[Installation](#installation)
13
-
- [Laravel version Compatibility](#laravel-version-compatibility)
14
-
- [Laravel](#laravel)
15
-
- [Lumen](#lumen)
16
-
- [Non-Laravel projects](#non-laravel-projects)
17
16
-[Testing](#testing)
18
17
-[Database Testing](#database-testing)
19
18
-[Configuration](#configuration)
@@ -52,67 +51,20 @@ This package adds functionalities to the Eloquent model and Query builder for Mo
52
51
Installation
53
52
------------
54
53
55
-
Make sure you have the MongoDB PHP driver installed. You can find installation instructions at http://php.net/manual/en/mongodb.installation.php
56
-
57
-
### Laravel version Compatibility
58
-
59
-
| Laravel | Package | Maintained |
60
-
| :------ | :------------- | :----------------- |
61
-
| 9.x | 3.9.x |:white_check_mark:|
62
-
| 8.x | 3.8.x |:white_check_mark:|
63
-
| 7.x | 3.7.x |:x:|
64
-
| 6.x | 3.6.x |:x:|
65
-
| 5.8.x | 3.5.x |:x:|
66
-
| 5.7.x | 3.4.x |:x:|
67
-
| 5.6.x | 3.4.x |:x:|
68
-
| 5.5.x | 3.3.x |:x:|
69
-
| 5.4.x | 3.2.x |:x:|
70
-
| 5.3.x | 3.1.x or 3.2.x |:x:|
71
-
| 5.2.x | 2.3.x or 3.0.x |:x:|
72
-
| 5.1.x | 2.2.x or 3.0.x |:x:|
73
-
| 5.0.x | 2.1.x |:x:|
74
-
| 4.2.x | 2.0.x |:x:|
54
+
Make sure you have the MongoDB PHP driver installed. You can find installation instructions at https://php.net/manual/en/mongodb.installation.php
75
55
76
56
Install the package via Composer:
77
57
78
58
```bash
79
59
$ composer require mongodb/laravel-mongodb
80
60
```
81
61
82
-
### Laravel
83
-
84
62
In case your Laravel version does NOT autoload the packages, add the service provider to `config/app.php`:
85
63
86
64
```php
87
65
MongoDB\Laravel\MongodbServiceProvider::class,
88
66
```
89
67
90
-
### Lumen
91
-
92
-
For usage with [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`. In this file, you will also need to enable Eloquent. You must however ensure that your call to `$app->withEloquent();` is **below** where you have registered the `MongodbServiceProvider`:
The service provider will register a MongoDB database extension with the original database manager. There is no need to register additional facades or objects.
101
-
102
-
When using MongoDB connections, Laravel will automatically provide you with the corresponding MongoDB objects.
103
-
104
-
### Non-Laravel projects
105
-
106
-
For usage outside Laravel, check out the [Capsule manager](https://github.com/illuminate/database/blob/master/README.md) and add:
0 commit comments