Skip to content

Commit ca1a929

Browse files
committed
Merge pull request #421 from jonwhittlestone/fix-readme-softdelete
correct SoftDelete Trait reference
2 parents a2d9eac + 5022a54 commit ca1a929

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
@@ -369,11 +369,11 @@ User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight'));
369369
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:
370370

371371
```php
372-
use Jenssegers\Mongodb\Eloquent\SoftDeletes;
372+
use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait;
373373

374374
class User extends Eloquent {
375375

376-
use SoftDeletes;
376+
use SoftDeletingTrait;
377377

378378
protected $dates = ['deleted_at'];
379379

0 commit comments

Comments
 (0)