Skip to content

Commit 2420dab

Browse files
committed
DOCSP-50781: Update SoftDeletes references
1 parent aad17bb commit 2420dab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/eloquent-models/model-class.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Eloquent includes a soft delete feature that changes the behavior of the
168168
database. It sets a timestamp on the ``deleted_at`` field to exclude it from
169169
retrieve operations automatically.
170170

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

174174
.. literalinclude:: /includes/eloquent-models/PlanetSoftDelete.php

docs/includes/eloquent-models/PlanetSoftDelete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Models;
44

55
use MongoDB\Laravel\Eloquent\Model;
6-
use MongoDB\Laravel\Eloquent\SoftDeletes;
6+
use Illuminate\Database\Eloquent\SoftDeletes;
77

88
class Planet extends Model
99
{

0 commit comments

Comments
 (0)