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 = [ 'picture_alt' => 'required|string|between:3,255', 'picture_title' => 'required|string|between:3,255', 'description' => 'required|string|between:3,255', 'job' => 'required|string|between:3,255', 'statut' => 'required|string|between:3,255', ]; return \array_merge( $rules, $this->pictureRules('picture', 292, 417, 292, 417, false), ); } }