Skip to content

Commit 06dcdef

Browse files
author
Chris Cho
committed
Revert "Merge branch 'mongodb:4.2' into DOCSP-37057-eloquent-schema-builder"
This reverts commit 72221f5, reversing changes made to ac4504c.
1 parent 72221f5 commit 06dcdef

17 files changed

+101
-528
lines changed

.github/workflows/build-ci.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build:
99
runs-on: "${{ matrix.os }}"
1010

11-
name: "PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} MongoDB ${{ matrix.mongodb }} ${{ matrix.mode }}"
11+
name: "PHP v${{ matrix.php }} with MongoDB ${{ matrix.mongodb }} ${{ matrix.mode }}"
1212

1313
strategy:
1414
matrix:
@@ -23,17 +23,10 @@ jobs:
2323
- "8.1"
2424
- "8.2"
2525
- "8.3"
26-
laravel:
27-
- "10.*"
28-
- "11.*"
2926
include:
3027
- php: "8.1"
31-
laravel: "10.*"
3228
mongodb: "5.0"
3329
mode: "low-deps"
34-
exclude:
35-
- php: "8.1"
36-
laravel: "11.*"
3730

3831
steps:
3932
- uses: "actions/checkout@v4"
@@ -65,9 +58,6 @@ jobs:
6558
if: ${{ runner.debug }}
6659
run: "docker version && env"
6760

68-
- name: "Restrict Laravel version"
69-
run: "composer require --dev --no-update 'laravel/framework:${{ matrix.laravel }}'"
70-
7161
- name: "Download Composer cache dependencies from cache"
7262
id: "composer-cache"
7363
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@@ -80,7 +70,8 @@ jobs:
8070
restore-keys: "${{ matrix.os }}-composer-"
8171

8272
- name: "Install dependencies"
83-
run: composer update --no-interaction $([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest')
73+
run: composer update --no-interaction $([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest --prefer-stable')
74+
8475
- name: "Run tests"
8576
run: "./vendor/bin/phpunit --coverage-clover coverage.xml"
8677
env:

.github/workflows/merge-up.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## [unreleased]
5-
6-
7-
## [4.2.0] - 2024-12-14
8-
9-
* Add support for Laravel 11 by @GromNaN in [#2735](https://github.com/mongodb/laravel-mongodb/pull/2735)
10-
* Implement Model::createOrFirst() using findOneAndUpdate operation by @GromNaN in [#2742](https://github.com/mongodb/laravel-mongodb/pull/2742)
11-
124
## [4.1.3] - 2024-03-05
135

146
* Fix the timezone of `datetime` fields when they are read from the database. By @GromNaN in [#2739](https://github.com/mongodb/laravel-mongodb/pull/2739)

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@
2424
"require": {
2525
"php": "^8.1",
2626
"ext-mongodb": "^1.15",
27-
"illuminate/support": "^10.0|^11",
28-
"illuminate/container": "^10.0|^11",
29-
"illuminate/database": "^10.30|^11",
30-
"illuminate/events": "^10.0|^11",
27+
"illuminate/support": "^10.0",
28+
"illuminate/container": "^10.0",
29+
"illuminate/database": "^10.30",
30+
"illuminate/events": "^10.0",
3131
"mongodb/mongodb": "^1.15"
3232
},
3333
"require-dev": {
3434
"phpunit/phpunit": "^10.3",
35-
"orchestra/testbench": "^8.0|^9.0",
35+
"orchestra/testbench": "^8.0",
3636
"mockery/mockery": "^1.4.4",
3737
"doctrine/coding-standard": "12.0.x-dev",
3838
"spatie/laravel-query-builder": "^5.6",
3939
"phpstan/phpstan": "^1.10"
4040
},
41-
"minimum-stability": "dev",
4241
"replace": {
4342
"jenssegers/mongodb": "self.version"
4443
},
@@ -67,6 +66,9 @@
6766
"cs:fix": "phpcbf"
6867
},
6968
"config": {
69+
"platform": {
70+
"php": "8.1"
71+
},
7072
"allow-plugins": {
7173
"dealerdirect/phpcodesniffer-composer-installer": true
7274
}

docs/compatibility.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ The following compatibility table specifies the versions of Laravel and
2323
.. include:: /includes/framework-compatibility-laravel.rst
2424

2525
To find compatibility information for unmaintained versions of {+odm-short+},
26-
see `Laravel Version Compatibility <{+mongodb-laravel-gh+}/blob/3.9/README.md#installation>`__
26+
see `Laravel Version Compatibility <https://github.com/mongodb/laravel-mongodb/blob/3.9/README.md#installation>`__
2727
on GitHub.

docs/includes/framework-compatibility-laravel.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33
:stub-columns: 1
44

55
* - {+odm-short+} Version
6-
- Laravel 11.x
76
- Laravel 10.x
87
- Laravel 9.x
98

10-
* - 4.2
11-
- ✓
12-
- ✓
13-
-
14-
159
* - 4.1
16-
-
1710
- ✓
1811
-
1912

2013
* - 4.0
21-
-
2214
- ✓
2315
-
2416

docs/index.txt

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ Laravel MongoDB
1414
:maxdepth: 1
1515

1616
/quick-start
17-
Release Notes <https://github.com/mongodb/laravel-mongodb/releases/>
1817
/retrieve
1918
/eloquent-models
2019
/query-builder
2120
/user-authentication
2221
/queues
2322
/transactions
24-
/issues-and-help
2523
/compatibility
2624
/upgrade
2725

@@ -60,12 +58,6 @@ see the following content:
6058
- :ref:`laravel-queues`
6159
- :ref:`laravel-transactions`
6260

63-
Issues & Help
64-
-------------
65-
66-
Learn how to report bugs, contribute to the library, and find
67-
more resources in the :ref:`laravel-issues-and-help` section.
68-
6961
Compatibility
7062
-------------
7163

@@ -78,4 +70,57 @@ Upgrade Versions
7870
Learn what changes you might need to make to your application to upgrade
7971
versions in the :ref:`laravel-upgrading` section.
8072

73+
Reporting Issues
74+
----------------
75+
76+
We are lucky to have a vibrant PHP community that includes users of varying
77+
experience with MongoDB PHP Library and {+odm-short+}. To get support for
78+
general questions, search or post in the
79+
:community-forum:`MongoDB Community Forums <>`.
80+
81+
To learn more about MongoDB support options, see the
82+
`Technical Support <https://www.mongodb.org/about/support>`__ page.
83+
84+
85+
Bugs / Feature Requests
86+
-----------------------
87+
88+
If you've found a bug or want to see a new feature in {+odm-short+},
89+
please report it in the GitHub issues section of the
90+
`mongodb/laravel-mongodb <https://github.com/mongodb/laravel-mongodb>`__
91+
repository.
92+
93+
If you want to contribute code, see the following section for instructions on
94+
submitting pull requests.
95+
96+
To report a bug or request a new feature, perform the following steps:
97+
98+
1. Visit the `GitHub issues <https://github.com/mongodb/laravel-mongodb/issues>`__
99+
section and search for any similar issues or bugs.
100+
#. If you find a matching issue, you can reply to the thread to report that
101+
you have a similar issue or request.
102+
#. If you cannot find a matching issue, click :guilabel:`New issue` and select
103+
the appropriate issue type.
104+
#. If you selected "Bug report" or "Feature request", please provide as much
105+
information as possible about the issue. Click :guilabel:`Submit new issue`
106+
to complete your submission.
107+
108+
If you've identified a security vulnerability in any official MongoDB
109+
product, please report it according to the instructions found in the
110+
:manual:`Create a Vulnerability Report page </tutorial/create-a-vulnerability-report>`.
111+
112+
For general questions and support requests, please use one of MongoDB's
113+
:manual:`Technical Support </support/>` channels.
114+
115+
Pull Requests
116+
-------------
117+
118+
We are happy to accept contributions to help improve the {+odm-short+}.
119+
120+
We track current development in `PHPORM <https://jira.mongodb.org/projects/PHPORM/summary>`__
121+
MongoDB JIRA project.
122+
123+
To learn more about contributing to this project, see the
124+
`CONTRIBUTING.md <https://github.com/mongodb/laravel-mongodb/blob/4.1/CONTRIBUTING.md>`__
125+
guide on GitHub.
81126

docs/issues-and-help.txt

Lines changed: 0 additions & 56 deletions
This file was deleted.

docs/quick-start.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ read and write operations on the data.
3333

3434
You can learn how to set up a local Laravel development environment
3535
and perform CRUD operations by viewing the
36-
:mdbu-course:`Getting Started with Laravel and MongoDB </courses/getting-started-with-laravel-and-mongodb>`
36+
:mdbu-course:`Getting Started with Laravel and MongoDB </getting-started-with-laravel-and-mongodb>`
3737
MongoDB University Learning Byte.
3838

3939
If you prefer to connect to MongoDB by using the PHP Library driver without

0 commit comments

Comments
 (0)