-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit 89463b0
Create DocumentModel trait to enable MongoDB on any 3rd party model class (#2580)
* Create DocumentModel trait to enable MongoDB on any 3rd party model class
* Use the trait for every test model
* Add method Model::isDocumentModel to check when model classes can be used with MongoDB
* Refactor the User class to extend Laravel's User class1 parent ffacc6b commit 89463b0
File tree
40 files changed
+1086
-887
lines changed- src
- Auth
- Eloquent
- Helpers
- Relations
- tests
- Eloquent
- Models
40 files changed
+1086
-887
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | - | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
7 | 11 |
| |
8 | 12 |
| |
9 | 13 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 | - | ||
10 | + | ||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | - | ||
15 | + | ||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | - | ||
7 | + | ||
8 | + | ||
15 | 9 |
| |
16 | - | ||
17 | - | ||
18 | - | ||
19 | - | ||
10 | + | ||
20 | 11 |
| |
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
25 | 16 |
|
0 commit comments