Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 4, 2019
1 parent 2c9f4e3 commit c3f40f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Spatie\TagsField;

use Illuminate\Support\Arr;
use Spatie\Tags\Tag;
use Laravel\Nova\Nova;
use Laravel\Nova\Fields\Field;
Expand Down Expand Up @@ -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']);
}

Expand Down

0 comments on commit c3f40f8

Please sign in to comment.