| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class TutorialTable implements Table |
||
| 10 | { |
||
| 11 | protected const TemplatePath = __DIR__.'/../../../Templates/enso/tutorials/tutorials.json'; |
||
| 12 | |||
| 13 | public function query(): Builder |
||
| 14 | { |
||
| 15 | return Tutorial::selectRaw(' |
||
|
|
|||
| 16 | tutorials.id, permissions.name as permission, tutorials.element, |
||
| 17 | tutorials.title, tutorials.placement, tutorials.order_index, tutorials.created_at |
||
| 18 | ')->join('permissions', 'permissions.id', '=', 'tutorials.permission_id'); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function templatePath(): string |
||
| 24 | } |
||
| 25 | } |
||
| 26 |