diff --git a/README.md b/README.md index 6c35951f0944fa6561a1d20c3de35425bc20501e..ca9477af987e4bf72ad2d87fdf8317ccb44c31de 100644 --- a/README.md +++ b/README.md @@ -268,15 +268,15 @@ You may also specify additional columns to update: 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: -use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait; + use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait; -class User extends Eloquent { + class User extends Eloquent { - use SoftDeletingTrait; + use SoftDeletingTrait; - protected $dates = ['deleted_at']; + protected $dates = ['deleted_at']; -} + } For more information check http://laravel.com/docs/eloquent#soft-deleting