src/Storage/DatabaseEntriesRepository.php
protected function updateTags($entry)
    {
        if (! empty($entry->tagsChanges['added'])) {
            $this->table('telescope_entries_tags')->insert(
                collect($entry->tagsChanges['added'])->map(function ($tag) use ($entry) {
                    return [
                        'entry_uuid' => $entry->uuid,
                        'tag' => $tag,
                    ];
                })->toArray()
            );
        }

        collect($entry->tagsChanges['removed'])->each(function ($tag) use ($entry) {
            $this->table('telescope_entries_tags')->where([
                'entry_uuid' => $entry->uuid,
                'tag' => $tag,
            ])->delete();
        });
    }
protected function updateTags($entry)
    {
        if (! empty($entry->tagsChanges['added'])) {
            $this->table('telescope_entries_tags')->insert(
                collect($entry->tagsChanges['added'])->map(function ($tag) use ($entry) {
                    return [
                        'entry_uuid' => $entry->uuid,
                        'tag' => $tag,
                    ];
                })->toArray()
            );
        }

        collect($entry->tagsChanges['removed'])->each(function ($tag) use ($entry) {
            $this->table('telescope_entries_tags')->where([
                'entry_uuid' => $entry->uuid,
                'tag' => $tag,
            ])->delete();
        });
    }
protected function updateTags ( $ entry ) { if ( ! empty ( $ entry -> tagsChanges [ 'added' ] ) ) { $ this -> table ( 'telescope_entries_tags' ) -> insert ( collect ( $ entry -> tagsChanges [ 'added' ] ) -> map ( function ( $ tag ) use ( $ entry ) { return [ 'entry_uuid' => $ entry -> uuid , 'tag' => $ tag , ] ; } ) -> toArray ( ) ) ; } collect ( $ entry -> tagsChanges [ 'removed' ] ) -> each ( function ( $ tag ) use ( $ entry ) { $ this -> table ( 'telescope_entries_tags' ) -> where ( [ 'entry_uuid' => $ entry -> uuid , 'tag' => $ tag , ] ) -> delete ( ) ; } ) ; }
Update tags of the given entry.

@param  \Laravel\Telescope\EntryUpdate  $entry
@return void
Update tags of the given entry .