lecturer landing pages added

This commit is contained in:
Benjamin Takats
2023-01-15 14:36:43 +01:00
parent e66c505fa9
commit 9409e484c7
23 changed files with 495 additions and 28 deletions

View File

@@ -88,6 +88,12 @@ class Lecturer extends Resource
Text::make('Name')
->rules('required', 'string'),
Markdown::make(__('Subtitle'), 'subtitle')
->help(__('This is the subtitle on the landing page.')),
Markdown::make(__('Intro'), 'intro')
->help(__('This is the introduction text that is shown on the landing page.')),
Text::make('Slug')
->rules('required', 'string', 'unique:lecturers,slug')
->exceptOnForms(),
@@ -108,7 +114,8 @@ class Lecturer extends Resource
return $request->user()
->hasRole('super-admin');
})
->searchable()->withSubtitles(),
->searchable()
->withSubtitles(),
];
}