check(); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'title' => ['required','string','min:2'], 'body' => ['nullable','string'], 'subtitle' => ['nullable','string'], 'file' => ['nullable','mimes:png,jpg,svg,mp4,pdf,docx,zip,rar,mp3','max:'.getMaxUploadSize()] ]; } }