src/Tag.php
public static function findManyByNameOrCreate(array $tags, string $group = null, string $locale = null): Collection
    {
        // Expects array of tag names
        return collect($tags)->map(function ($tag) use ($group, $locale) {
            return static::findByNameOrCreate($tag, $group, $locale);
        });
    }
public static function findManyByNameOrCreate(array $tags, string $group = null, string $locale = null): Collection
    {
        // Expects array of tag names
        return collect($tags)->map(function ($tag) use ($group, $locale) {
            return static::findByNameOrCreate($tag, $group, $locale);
        });
    }
public static function findManyByNameOrCreate ( array $ tags , string $ group = null , string $ locale = null ) : Collection { // Expects array of tag names return collect ( $ tags ) -> map ( function ( $ tag ) use ( $ group , $ locale ) { return static :: findByNameOrCreate ( $ tag , $ group , $ locale ) ; } ) ; }
Find many tags by name or create if not exists.

@param array       $tags
@param string|null $group
@param string|null $locale

@return \Illuminate\Support\Collection
Find many tags by name or create if not exists .