Skip to content

Commit 06b3ed3

Browse files
committed
Fix soft deleting
1 parent f2a84b5 commit 06b3ed3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,13 @@ You may also specify additional columns to update:
292292

293293
**Soft deleting**
294294

295-
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:
295+
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 SoftDeletes to the model:
296296

297-
use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait;
297+
use Jenssegers\Mongodb\Eloquent\SoftDeletes;
298298

299299
class User extends Eloquent {
300300

301-
use SoftDeletingTrait;
301+
use SoftDeletes;
302302

303303
protected $dates = ['deleted_at'];
304304

src/Jenssegers/Mongodb/Eloquent/SoftDeletingTrait.php renamed to src/Jenssegers/Mongodb/Eloquent/SoftDeletes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php namespace Jenssegers\Mongodb\Eloquent;
22

3-
trait SoftDeletingTrait {
3+
trait SoftDeletes {
44

5-
use \Illuminate\Database\Eloquent\SoftDeletingTrait;
5+
use \Illuminate\Database\Eloquent\SoftDeletes;
66

77
/**
88
* Get the fully qualified "deleted at" column.

tests/models/Soft.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
use Jenssegers\Mongodb\Model as Eloquent;
4-
use Jenssegers\Mongodb\Eloquent\SoftDeletingTrait;
4+
use Jenssegers\Mongodb\Eloquent\SoftDeletes;
55

66
class Soft extends Eloquent {
77

8-
use SoftDeletingTrait;
8+
use SoftDeletes;
99

1010
protected $collection = 'soft';
1111
protected static $unguarded = true;

0 commit comments

Comments
 (0)