check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'picture' => 'sometimes|image|mimes:jpeg,png,jpg|max:2048|dimensions:width=100,height=100', 'alt_text_picture' => 'required|max:255', 'text' => 'required', ]; } }