src/Storage/DatabaseEntriesRepository.php
public function update(Collection $updates)
    {
        foreach ($updates as $update) {
            $entry = $this->table('telescope_entries')
                            ->where('uuid', $update->uuid)
                            ->where('type', $update->type)
                            ->first();

            if (! $entry) {
                continue;
            }

            $content = json_encode(array_merge(
                json_decode($entry->content, true) ?: [], $update->changes
            ));

            $this->table('telescope_entries')
                            ->where('uuid', $update->uuid)
                            ->where('type', $update->type)
                            ->update(['content' => $content]);

            $this->updateTags($update);
        }
    }
public function update(Collection $updates)
    {
        foreach ($updates as $update) {
            $entry = $this->table('telescope_entries')
                            ->where('uuid', $update->uuid)
                            ->where('type', $update->type)
                            ->first();

            if (! $entry) {
                continue;
            }

            $content = json_encode(array_merge(
                json_decode($entry->content, true) ?: [], $update->changes
            ));

            $this->table('telescope_entries')
                            ->where('uuid', $update->uuid)
                            ->where('type', $update->type)
                            ->update(['content' => $content]);

            $this->updateTags($update);
        }
    }
public function update ( Collection $ updates ) { foreach ( $ updates as $ update ) { $ entry = $ this -> table ( 'telescope_entries' ) -> where ( 'uuid' , $ update -> uuid ) -> where ( 'type' , $ update -> type ) -> first ( ) ; if ( ! $ entry ) { continue ; } $ content = json_encode ( array_merge ( json_decode ( $ entry -> content , true ) ? : [ ] , $ update -> changes ) ) ; $ this -> table ( 'telescope_entries' ) -> where ( 'uuid' , $ update -> uuid ) -> where ( 'type' , $ update -> type ) -> update ( [ 'content' => $ content ] ) ; $ this -> updateTags ( $ update ) ; } }
Store the given entry updates.

@param  \Illuminate\Support\Collection|\Laravel\Telescope\EntryUpdate[]  $updates
@return void
Store the given entry updates .