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