*/ public function rules(): array { return [ 'endpoint' => ['required', 'url', 'max:255'], 'events' => ['required', 'array', 'min:1'], 'events.*' => ['string', Rule::enum(EventType::class)], ]; } /** * @return array */ public function attributes(): array { return [ 'endpoint' => __('webhooks.create.endpoint'), 'events' => __('webhooks.create.events'), 'events.*' => __('webhooks.create.events'), ]; } }