merge([ 'ids' => Arr::whereNotNull($this->ids ?? []), ]); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'ids' => 'required|array|max:500|min:1', 'ids.*' => 'required|uuid|distinct', ]; } }