| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 6 | public function index(Authentication $authentication) |
|
| 13 | { |
||
| 14 | 6 | $this->authorize('view-page'); |
|
| 15 | |||
| 16 | 3 | $pageView = PageView::create([ |
|
| 17 | 3 | 'viewed_by' => $authentication->getUser()->id() |
|
| 18 | ]); |
||
| 19 | |||
| 20 | 3 | event(new PageViewed($pageView)); |
|
| 21 | |||
| 22 | 3 | return view('static-page::participant'); |
|
| 23 | } |
||
| 25 | } |