| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function execute() |
||
| 33 | {; |
||
| 34 | // Log traffic data to DB |
||
| 35 | TrackTraffic::query()->create($this->tracking); |
||
| 36 | |||
| 37 | // Log JSON encoded activity to local log file |
||
| 38 | // todo: add to config |
||
| 39 | if (env('TRACK_TRAFFIC_LOGGING', false) == true) { |
||
| 40 | Log::channel('traffic')->info(json_encode($this->tracking)); |
||
| 41 | } |
||
| 44 |