url rule corrected

This commit is contained in:
HolgerHatGarKeineNode
2023-02-22 16:48:26 +01:00
parent be33b01754
commit 41872ea45f
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class MeetupEventForm extends Component
'meetupEvent.start' => 'required', 'meetupEvent.start' => 'required',
'meetupEvent.location' => 'string|nullable', 'meetupEvent.location' => 'string|nullable',
'meetupEvent.description' => 'string|nullable', 'meetupEvent.description' => 'string|nullable',
'meetupEvent.link' => 'string|url|nullable', 'meetupEvent.link' => 'url|nullable',
'series.*.start' => 'required', 'series.*.start' => 'required',

View File

@@ -97,7 +97,7 @@ class MeetupEvent extends Resource
Text::make('Link') Text::make('Link')
->hideFromIndex() ->hideFromIndex()
->rules('nullable', 'string') ->rules('nullable', 'url')
->nullable() ->nullable()
->help(__('For example, a link to a location on Google Maps or a link to a website. (not your Telegram group link)')), ->help(__('For example, a link to a location on Google Maps or a link to a website. (not your Telegram group link)')),