Skip to content

Commit 816be90

Browse files
committed
Fix format callback
1 parent ed03c58 commit 816be90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/Column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function formatted($row, $column = null)
260260
$value = data_get($row, $columnName);
261261

262262
if ($this->formatCallback) {
263-
return app()->call($this->formatCallback, ['value' => $value, 'column' => $column, 'row' => $row]);
263+
$value = call_user_func($this->formatCallback, $value, $row, $column);
264264
}
265265

266266
return $value;

0 commit comments

Comments
 (0)