| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function __construct(Model $model) |
||
| 48 | { |
||
| 49 | // Get array of changes made to the model |
||
| 50 | $this->model = $model; |
||
| 51 | $this->model_changes = $this->model->getChanges(); |
||
| 52 | |||
| 53 | // Set user_id and request_token for associating with traffic tracking data |
||
| 54 | $this->user_id = activeUserID(); |
||
|
|
|||
| 55 | $this->request_token = request()->get('track_traffic_token') ?? null; |
||
| 56 | |||
| 57 | // Get the route name |
||
| 58 | $this->route = request() && request()->route() ? (request()->route()->getName() ?? null) : null; |
||
| 59 | $this->description = session('success') ?? null; |
||
| 60 | } |
||
| 62 |