adds roles
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user