| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait HasRevisions |
||
| 6 | { |
||
| 7 | public function revisions() |
||
| 8 | { |
||
| 9 | return $this->hasMany(config('twill.namespace') . "\Models\Revisions\\" . class_basename($this) . "Revision")->orderBy('created_at', 'desc'); |
||
|
|
|||
| 10 | } |
||
| 11 | |||
| 12 | public function scopeMine($query) |
||
| 16 | }); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function revisionsArray() |
||
| 28 | } |
||
| 29 | } |
||
| 30 |