Make description required. (#667)

This commit is contained in:
Charles 2024-10-26 22:06:34 -04:00 committed by GitHub
parent f3de185508
commit 7acc8782bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,11 +26,14 @@ class WebhookResource extends Resource
{ {
return $form return $form
->schema([ ->schema([
TextInput::make('endpoint')->activeUrl()->required(), TextInput::make('endpoint')
TextInput::make('description')->nullable(), ->activeUrl()
CheckboxList::make('events')->lazy()->options( ->required(),
fn () => WebhookConfiguration::filamentCheckboxList() TextInput::make('description')
) ->required(),
CheckboxList::make('events')
->lazy()
->options(fn () => WebhookConfiguration::filamentCheckboxList())
->searchable() ->searchable()
->bulkToggleable() ->bulkToggleable()
->columns(3) ->columns(3)