public static function apiXls() { $results = self::paymentsPerPayee(Auth::user()["code"])->select(self::downloadHeader())->get()->toArray(); return ["content" => CsvFileService::toXls($results, implode("\t", self::downloadHeader())), "content_type" => "application/vnd.ms-excel", "filename" => "payments.xls"]; }