From 254db16db9b6b1d2c23f3178f682b32069cf3e97 Mon Sep 17 00:00:00 2001 From: Patrick Torres Date: Tue, 5 Jul 2022 20:14:20 +0800 Subject: [PATCH] Fixed exportFormat parameter This update allows the Column exportFormat() method to accept a callable parameter to support the latest functionality in laravel-datatables-export v1. --- src/Html/Column.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Html/Column.php b/src/Html/Column.php index d76551e..a574f54 100644 --- a/src/Html/Column.php +++ b/src/Html/Column.php @@ -588,11 +588,11 @@ public function titleAttr(mixed $value): static /** * Set excel column format when exporting. * - * @param string $format + * @param string|callable $format * @return $this * @see https://github.com/yajra/laravel-datatables-export */ - public function exportFormat(string $format): static + public function exportFormat(string|callable $format): static { $this->attributes['exportFormat'] = $format;