Skip to content

DOCSP-50781: Update SoftDeletes references #3413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/eloquent-models/model-class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Eloquent includes a soft delete feature that changes the behavior of the
database. It sets a timestamp on the ``deleted_at`` field to exclude it from
retrieve operations automatically.

To enable soft deletes on a class, add the ``MongoDB\Laravel\Eloquent\SoftDeletes``
To enable soft deletes on a class, add the ``Illuminate\Database\Eloquent\SoftDeletes``
trait as shown in the following code example:

.. literalinclude:: /includes/eloquent-models/PlanetSoftDelete.php
Expand Down
2 changes: 1 addition & 1 deletion docs/includes/eloquent-models/PlanetSoftDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;
use MongoDB\Laravel\Eloquent\Model;
use MongoDB\Laravel\Eloquent\SoftDeletes;

class Planet extends Model
{
Expand Down
Loading