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