mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
feature: wrap in value so closures can be used
This commit is contained in:
@@ -80,7 +80,7 @@ class Text extends Column
|
||||
$value = parent::getValue($record, $attribute);
|
||||
|
||||
if ($value === null) {
|
||||
return $this->default;
|
||||
return value($this->default);
|
||||
}
|
||||
|
||||
if ($this->formatUsing) {
|
||||
|
||||
Reference in New Issue
Block a user