protected static function convertToTags($values)
    {
        return collect($values)->map(function ($value) {
            if ($value instanceof Tag) {
                return $value;
            }

            return Tag::where('slug', '=', $value)->first();
        });
    }
protected static function convertToTags($values)
    {
        return collect($values)->map(function ($value) {
            if ($value instanceof Tag) {
                return $value;
            }

            return Tag::where('slug', '=', $value)->first();
        });
    }
protected static function convertToTags ( $ values ) { return collect ( $ values ) -> map ( function ( $ value ) { if ( $ value instanceof Tag ) { return $ value ; } return Tag :: where ( 'slug' , '=' , $ value ) -> first ( ) ; } ) ; }
Convert a list of tags into a collection of \CachetHQ\Cachet\Models\Tag.

@param array|\ArrayAccess $values

@return \Illuminate\Support\Collection
Convert a list of tags into a collection of \ CachetHQ \ Cachet \ Models \ Tag .