finishes 13 and 14

This commit is contained in:
2026-02-03 20:18:08 +01:00
parent c693cde038
commit baa43de4e1
47 changed files with 3522 additions and 21 deletions

View File

@@ -42,6 +42,13 @@ final class AnswerResource extends Resource
*/
public static $displayInNavigation = false;
/**
* The relationships that should be eager loaded on index queries.
*
* @var array
*/
public static $with = ['session', 'question'];
/**
* Get the fields displayed by the resource.
*

View File

@@ -49,6 +49,13 @@ final class LogResource extends Resource
*/
public static $group = 'Analytics';
/**
* The relationships that should be eager loaded on index queries.
*
* @var array
*/
public static $with = ['user', 'session', 'category'];
/**
* Get the fields displayed by the resource.
*

View File

@@ -50,6 +50,13 @@ final class ScreeningResource extends Resource
*/
public static $group = 'Questionnaire';
/**
* The relationships that should be eager loaded on index queries.
*
* @var array
*/
public static $with = ['user'];
/**
* Get the fields displayed by the resource.
*

View File

@@ -52,6 +52,13 @@ final class SessionResource extends Resource
*/
public static $group = 'Questionnaire';
/**
* The relationships that should be eager loaded on index queries.
*
* @var array
*/
public static $with = ['user', 'category', 'screening'];
/**
* Get the fields displayed by the resource.
*