Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -3,7 +3,7 @@
namespace App\Models;

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

class Planet extends Model
{
Expand Down
Loading