Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __construct(Model $model) |
||
17 | { |
||
18 | $this->setAttribute([ |
||
19 | 'model.original' => $model->getOriginal(), |
||
20 | 'model.attributes' => $model->getAttributes(), |
||
21 | 'model.table' => $model->getTable(), |
||
22 | 'user_id' => Auth::id(), |
||
23 | 'client_ip' => request()->getClientIp(), |
||
24 | 'type' => $this->type, |
||
25 | ]); |
||
26 | } |
||
27 | |||
64 |