From d1facb88fc0000e3acbb302aae4379b4ca0a2fb2 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Fri, 20 Jan 2023 15:09:30 +0100 Subject: [PATCH] news twitter --- app/Nova/LibraryItem.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Nova/LibraryItem.php b/app/Nova/LibraryItem.php index 604ac884..bb1bfbcb 100644 --- a/app/Nova/LibraryItem.php +++ b/app/Nova/LibraryItem.php @@ -16,6 +16,7 @@ use Laravel\Nova\Fields\ID; use Laravel\Nova\Fields\Number; use Laravel\Nova\Fields\Select; use Laravel\Nova\Fields\Text; +use Laravel\Nova\Fields\Textarea; use Laravel\Nova\Http\Requests\NovaRequest; use Spatie\LaravelOptions\Options; use Spatie\TagsField\Tags; @@ -120,13 +121,13 @@ class LibraryItem extends Resource ->type('library_item') ->withLinkToTagResource(Tag::class), - Text::make('Name') + Texta::make('Name') ->rules('required', 'string'), Text::make(__('Subtitle'), 'subtitle') ->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.')), Text::make(__('Main image caption'), 'main_image_caption')