check(); } /** * Prepare the data for validation. * * @return void */ protected function prepareForValidation() { $this->mergePicture('picture'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $rules = [ 'title_part1' => 'required|string|between:3,255', 'title_part2' => 'required|string|between:3,255', 'title_part3' => 'required|string|between:3,255', 'picture_alt' => 'required|string|between:3,255', 'picture_title' => 'required|string|between:3,255', 'presentation_title' => 'required|string|between:3,255', 'presentation_content' => 'required|string', ]; return \array_merge( $rules, $this->pictureRules('picture', 640, 390, 640, 390, false), ); } }