Skip to content

Commit

Permalink
Merge pull request #421 from jonwhittlestone/fix-readme-softdelete
Browse files Browse the repository at this point in the history
correct SoftDelete Trait reference
  • Loading branch information
jenssegers committed Feb 10, 2015
2 parents a2d9eac + 5022a54 commit ca1a929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -369,11 +369,11 @@ User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight'));
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:

```php
use Jenssegers\Mongodb\Eloquent\SoftDeletes;
use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait;

class User extends Eloquent {

use SoftDeletes;
use SoftDeletingTrait;

protected $dates = ['deleted_at'];

Expand Down

0 comments on commit ca1a929

Please sign in to comment.