check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'picture' => 'sometimes|image|mimes:png|max:1024', 'text' => 'required|max:50', ]; } }