adds roles

This commit is contained in:
2026-02-16 11:19:06 +01:00
parent ebaeb1722d
commit 4dc64c22cb
29 changed files with 495 additions and 89 deletions

View File

@@ -49,6 +49,22 @@ final class AnswerResource extends Resource
*/
public static $with = ['session', 'question'];
/**
* Get the displayable label of the resource.
*/
public static function label(): string
{
return 'Answers';
}
/**
* Get the displayable singular label of the resource.
*/
public static function singularLabel(): string
{
return 'Answer';
}
/**
* Get the fields displayed by the resource.
*
@@ -76,6 +92,7 @@ public function fields(NovaRequest $request): array
->rules('nullable', 'max:255'),
Textarea::make('Text Value')
->alwaysShow()
->rules('nullable'),
DateTime::make('Created At')