news twitter

This commit is contained in:
Benjamin Takats
2023-01-20 15:09:30 +01:00
parent da95e9b9ea
commit d1facb88fc

View File

@@ -16,6 +16,7 @@ use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Number; use Laravel\Nova\Fields\Number;
use Laravel\Nova\Fields\Select; use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\Text; use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Textarea;
use Laravel\Nova\Http\Requests\NovaRequest; use Laravel\Nova\Http\Requests\NovaRequest;
use Spatie\LaravelOptions\Options; use Spatie\LaravelOptions\Options;
use Spatie\TagsField\Tags; use Spatie\TagsField\Tags;
@@ -120,13 +121,13 @@ class LibraryItem extends Resource
->type('library_item') ->type('library_item')
->withLinkToTagResource(Tag::class), ->withLinkToTagResource(Tag::class),
Text::make('Name') Texta::make('Name')
->rules('required', 'string'), ->rules('required', 'string'),
Text::make(__('Subtitle'), 'subtitle') Text::make(__('Subtitle'), 'subtitle')
->rules('nullable', 'string'), ->rules('nullable', 'string'),
Text::make(__('Excerpt'), 'excerpt') Textarea::make(__('Excerpt'), 'excerpt')
->rules('nullable', 'string')->help(__('This is the excerpt that is shown in the overview.')), ->rules('nullable', 'string')->help(__('This is the excerpt that is shown in the overview.')),
Text::make(__('Main image caption'), 'main_image_caption') Text::make(__('Main image caption'), 'main_image_caption')