Skip to content

Commit

Permalink
RR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
norareidy committed Sep 6, 2024
1 parent 82679a7 commit 7224c72
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ This library version introduces the following breaking changes:
of this behavior, you cannot have two separate ``id`` and ``_id`` fields in your
documents.

- Removes support for the ``$collection`` property and the following associated
methods:
- Removes support for the ``$collection`` property and associated methods.
The following list contains the removed methods and provides alternative methods
that you can use to replace the functionality:

- ``Model::collection()``. Instead, use ``Model::table()``.
- ``DB::collection()``. Instead, use ``DB::table()``.
- ``Connection::collection()``. Instead, use ``Connection::table()``.
- ``Schema::collection()``. Instead, use ``Schema::table()``.
- ``Model::collection()``: use ``Model::table()``
- ``DB::collection()``: use ``DB::table()``
- ``Connection::collection()``: use ``Connection::table()``
- ``Schema::collection()``: use ``Schema::table()``

.. _laravel-breaking-changes-v4.x:

Expand Down

0 comments on commit 7224c72

Please sign in to comment.