Commit 5022a547 authored by Jon Whittlestone's avatar Jon Whittlestone

correct SoftDelete Trait reference

parent a2d9eacb
...@@ -369,11 +369,11 @@ User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight')); ...@@ -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: 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 ```php
use Jenssegers\Mongodb\Eloquent\SoftDeletes; use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait;
class User extends Eloquent { class User extends Eloquent {
use SoftDeletes; use SoftDeletingTrait;
protected $dates = ['deleted_at']; protected $dates = ['deleted_at'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment