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
->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)