| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function __invoke($id) |
||
| 16 | { |
||
| 17 | $this->authorize('manage', TechTip::class); |
||
| 18 | |||
| 19 | // Pull the Tech Tip Information |
||
| 20 | $tip = TechTip::where('slug', $id) |
||
| 21 | ->withTrashed() |
||
| 22 | ->with('EquipmentType') |
||
| 23 | ->with('FileUploads') |
||
| 24 | ->with('TechTipComment.User') |
||
| 25 | ->firstOrFail() |
||
| 26 | ->makeHidden(['summary', 'sticky']); |
||
| 27 | |||
| 28 | return Inertia::render('TechTips/ShowDeleted', [ |
||
| 29 | 'tip' => $tip, |
||
| 30 | ]); |
||
| 33 |