diff --git a/src/FieldServiceProvider.php b/src/FieldServiceProvider.php index 3c1f669..44c997c 100644 --- a/src/FieldServiceProvider.php +++ b/src/FieldServiceProvider.php @@ -24,8 +24,8 @@ public function boot() Textarea::macro('limit', function($amount, $ending = '...') { if(resolve(NovaRequest::class)->resourceId == null) { - $this->displayUsing(function() use($amount, $ending) { - return str_limit($this->value, $amount, $ending); + $this->displayUsing(function($value) use($amount, $ending) { + return str_limit($value, $amount, $ending); }); }