check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'title' => 'required|max:50', 'picture' => 'sometimes|image|mimes:jpeg,png,jpg|max:512|dimensions:max_width=150,max_height=150', 'alt_text_picture' => 'required|max:255', 'text' => 'required|max:127', ]; } }