1 | <?php namespace Arcanedev\LaravelNestedSet\Traits; |
||
11 | trait SoftDeleteTrait |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Properties |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | /** |
||
18 | * @var \Carbon\Carbon |
||
19 | */ |
||
20 | public static $deletedAt; |
||
21 | |||
22 | /* ----------------------------------------------------------------- |
||
23 | | Main Methods |
||
24 | | ----------------------------------------------------------------- |
||
25 | */ |
||
26 | /** |
||
27 | * Check if the model uses soft delete. |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | 216 | public static function usesSoftDelete() |
|
43 | |||
44 | /** |
||
45 | * Get whether user is intended to delete the model from database entirely. |
||
46 | * |
||
47 | * @return bool |
||
48 | */ |
||
49 | 15 | protected function hardDeleting() |
|
53 | } |
||
54 |