src/Storage/DatabaseEntriesRepository.php
protected function storeExceptions(Collection $exceptions)
    {
        $this->table('telescope_entries')->insert($exceptions->map(function ($exception) {
            $occurrences = $this->table('telescope_entries')
                    ->where('type', EntryType::EXCEPTION)
                    ->where('family_hash', $exception->familyHash())
                    ->count();

            $this->table('telescope_entries')
                    ->where('type', EntryType::EXCEPTION)
                    ->where('family_hash', $exception->familyHash())
                    ->update(['should_display_on_index' => false]);

            return array_merge($exception->toArray(), [
                'family_hash' => $exception->familyHash(),
                'content' => json_encode(array_merge(
                    $exception->content, ['occurrences' => $occurrences + 1]
                )),
            ]);
        })->toArray());

        $this->storeTags($exceptions->pluck('tags', 'uuid'));
    }
protected function storeExceptions(Collection $exceptions)
    {
        $this->table('telescope_entries')->insert($exceptions->map(function ($exception) {
            $occurrences = $this->table('telescope_entries')
                    ->where('type', EntryType::EXCEPTION)
                    ->where('family_hash', $exception->familyHash())
                    ->count();

            $this->table('telescope_entries')
                    ->where('type', EntryType::EXCEPTION)
                    ->where('family_hash', $exception->familyHash())
                    ->update(['should_display_on_index' => false]);

            return array_merge($exception->toArray(), [
                'family_hash' => $exception->familyHash(),
                'content' => json_encode(array_merge(
                    $exception->content, ['occurrences' => $occurrences + 1]
                )),
            ]);
        })->toArray());

        $this->storeTags($exceptions->pluck('tags', 'uuid'));
    }
protected function storeExceptions ( Collection $ exceptions ) { $ this -> table ( 'telescope_entries' ) -> insert ( $ exceptions -> map ( function ( $ exception ) { $ occurrences = $ this -> table ( 'telescope_entries' ) -> where ( 'type' , EntryType :: EXCEPTION ) -> where ( 'family_hash' , $ exception -> familyHash ( ) ) -> count ( ) ; $ this -> table ( 'telescope_entries' ) -> where ( 'type' , EntryType :: EXCEPTION ) -> where ( 'family_hash' , $ exception -> familyHash ( ) ) -> update ( [ 'should_display_on_index' => false ] ) ; return array_merge ( $ exception -> toArray ( ) , [ 'family_hash' => $ exception -> familyHash ( ) , 'content' => json_encode ( array_merge ( $ exception -> content , [ 'occurrences' => $ occurrences + 1 ] ) ) , ] ) ; } ) -> toArray ( ) ) ; $ this -> storeTags ( $ exceptions -> pluck ( 'tags' , 'uuid' ) ) ; }
Store the given array of exception entries.

@param  \Illuminate\Support\Collection|\Laravel\Telescope\IncomingEntry[]  $exceptions
@return void
Store the given array of exception entries .