Skip to content

Commit ab02a25

Browse files
authored
Remove legacy from readme (#2586)
1 parent 25c73e2 commit ab02a25

File tree

1 file changed

+4
-52
lines changed

1 file changed

+4
-52
lines changed

Diff for: README.md

+4-52
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ Laravel MongoDB
88

99
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.*
1010

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+
1114
- [Laravel MongoDB](#laravel-mongodb)
1215
- [Installation](#installation)
13-
- [Laravel version Compatibility](#laravel-version-compatibility)
14-
- [Laravel](#laravel)
15-
- [Lumen](#lumen)
16-
- [Non-Laravel projects](#non-laravel-projects)
1716
- [Testing](#testing)
1817
- [Database Testing](#database-testing)
1918
- [Configuration](#configuration)
@@ -52,67 +51,20 @@ This package adds functionalities to the Eloquent model and Query builder for Mo
5251
Installation
5352
------------
5453

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
7555

7656
Install the package via Composer:
7757

7858
```bash
7959
$ composer require mongodb/laravel-mongodb
8060
```
8161

82-
### Laravel
83-
8462
In case your Laravel version does NOT autoload the packages, add the service provider to `config/app.php`:
8563

8664
```php
8765
MongoDB\Laravel\MongodbServiceProvider::class,
8866
```
8967

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`:
93-
94-
```php
95-
$app->register(MongoDB\Laravel\MongodbServiceProvider::class);
96-
97-
$app->withEloquent();
98-
```
99-
100-
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:
107-
108-
```php
109-
$capsule->getDatabaseManager()->extend('mongodb', function($config, $name) {
110-
$config['name'] = $name;
111-
112-
return new MongoDB\Laravel\Connection($config);
113-
});
114-
```
115-
11668
Testing
11769
-------
11870

0 commit comments

Comments
 (0)