check(); } /** * @return array */ public function rules() { return [ 'description.*' => 'required|min:1,max:255', 'source_account_id.*' => 'numeric|belongsToUser:accounts,id', 'destination_account_id.*' => 'numeric|belongsToUser:accounts,id', 'revenue_account' => 'max:255', 'expense_account' => 'max:255', ]; } }