@@ -165,6 +165,9 @@ |
||
165 | 165 | return $this; |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string $type |
|
170 | + */ |
|
168 | 171 | protected static function convertToTags($values, $type = null, $locale = null) |
169 | 172 | { |
170 | 173 | return collect($values)->map(function ($value) use ($type, $locale) { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Tags; |
4 | 4 | |
5 | -use InvalidArgumentException; |
|
6 | -use Illuminate\Database\Eloquent\Model; |
|
7 | 5 | use Illuminate\Database\Eloquent\Builder; |
8 | 6 | use Illuminate\Database\Eloquent\Collection; |
7 | +use Illuminate\Database\Eloquent\Model; |
|
9 | 8 | use Illuminate\Database\Eloquent\Relations\MorphToMany; |
9 | +use InvalidArgumentException; |
|
10 | 10 | |
11 | 11 | trait HasTags |
12 | 12 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Tags; |
4 | 4 | |
5 | -use Spatie\EloquentSortable\Sortable; |
|
6 | -use Illuminate\Database\Eloquent\Model; |
|
7 | -use Spatie\Translatable\HasTranslations; |
|
8 | 5 | use Illuminate\Database\Eloquent\Builder; |
9 | -use Spatie\EloquentSortable\SortableTrait; |
|
10 | 6 | use Illuminate\Database\Eloquent\Collection as DbCollection; |
7 | +use Illuminate\Database\Eloquent\Model; |
|
8 | +use Spatie\EloquentSortable\Sortable; |
|
9 | +use Spatie\EloquentSortable\SortableTrait; |
|
10 | +use Spatie\Translatable\HasTranslations; |
|
11 | 11 | |
12 | 12 | class Tag extends Model implements Sortable |
13 | 13 | { |