Commit 3fb67d12 authored by Shaz Amjad's avatar Shaz Amjad

Readme update for SoftDeletes trait

Just a minor change for those using master; SoftDeletingTrait is now SoftDeletes so updating the read me to reflect that.
parent 265ef41e
...@@ -381,11 +381,11 @@ User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight')); ...@@ -381,11 +381,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\SoftDeletingTrait; use Jenssegers\Mongodb\Eloquent\SoftDeletes;
class User extends Eloquent { class User extends Eloquent {
use SoftDeletingTrait; use SoftDeletes;
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