check(); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'title' => 'required|string|between:3,255', 'place' => 'required|string|between:3,255', 'video_id' => 'required|string|regex:%([^"&?\/\s]{11})%i', ]; } /** * Get custom attributes for validator errors. * * @return array */ public function attributes(): array { return [ 'title' => trans('validation.attributes.title'), 'place' => trans('validation.custom.place'), 'video_id' => trans('validation.custom.video_id'), ]; } }