diff --git a/CHANGELOG.md b/CHANGELOG.md index cf3b51b..d4a42e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `nova-tags-field` will be documented in this file +## 2.3.0 - 2019-09-04 + +- add support for Laravel 6 + ## 2.2.1 - 2019-08-05 - sort the tags by name diff --git a/src/Tags.php b/src/Tags.php index 8604ea7..48013f0 100644 --- a/src/Tags.php +++ b/src/Tags.php @@ -2,6 +2,7 @@ namespace Spatie\TagsField; +use Illuminate\Support\Arr; use Spatie\Tags\Tag; use Laravel\Nova\Nova; use Laravel\Nova\Fields\Field; @@ -97,7 +98,7 @@ public function resolveAttribute($resource, $attribute = null) { $tags = $resource->tags; - if (array_has($this->meta(), 'type')) { + if (Arr::has($this->meta(), 'type')) { $tags = $tags->where('type', $this->meta()['type']); }