Skip to content

Commit 327e2a1

Browse files
committed
Merge pull request #450 from shazamjad/patch-1
Readme update for SoftDeletes trait
2 parents 265ef41 + 3fb67d1 commit 327e2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,11 @@ User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight'));
381381
When soft deleting a model, it is not actually removed from your database. Instead, a deleted_at timestamp is set on the record. To enable soft deletes for a model, apply the SoftDeletingTrait to the model:
382382

383383
```php
384-
use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait;
384+
use Jenssegers\Mongodb\Eloquent\SoftDeletes;
385385

386386
class User extends Eloquent {
387387

388-
use SoftDeletingTrait;
388+
use SoftDeletes;
389389

390390
protected $dates = ['deleted_at'];
391391

0 commit comments

Comments
 (0)