user()->can('create', RecurringInvoice::class); } public function rules() { return [ 'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx', 'client_id' => 'required|integer', ]; } protected function prepareForValidation() { //do post processing of RecurringInvoice request here, ie. RecurringInvoice_items } public function messages() { } }