Commit d5283da2 authored by Jens Segers's avatar Jens Segers

Fix readme indentation

parent 614e0edb
......@@ -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
......
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