From 7acc8782bb3ed364633361afcba161390a03ce8e Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 26 Oct 2024 22:06:34 -0400 Subject: [PATCH] Make description required. (#667) --- app/Filament/Resources/WebhookResource.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/Filament/Resources/WebhookResource.php b/app/Filament/Resources/WebhookResource.php index 9c30330e3..804c0e078 100644 --- a/app/Filament/Resources/WebhookResource.php +++ b/app/Filament/Resources/WebhookResource.php @@ -26,11 +26,14 @@ class WebhookResource extends Resource { return $form ->schema([ - TextInput::make('endpoint')->activeUrl()->required(), - TextInput::make('description')->nullable(), - CheckboxList::make('events')->lazy()->options( - fn () => WebhookConfiguration::filamentCheckboxList() - ) + TextInput::make('endpoint') + ->activeUrl() + ->required(), + TextInput::make('description') + ->required(), + CheckboxList::make('events') + ->lazy() + ->options(fn () => WebhookConfiguration::filamentCheckboxList()) ->searchable() ->bulkToggleable() ->columns(3)