src/Telescope.php
public static function store(EntriesRepository $storage)
    {
        if (empty(static::$entriesQueue) && empty(static::$updatesQueue)) {
            return;
        }

        if (! collect(static::$filterBatchUsing)->every->__invoke(collect(static::$entriesQueue))) {
            static::flushEntries();
        }

        try {
            $batchId = Str::orderedUuid()->toString();

            $storage->store(static::collectEntries($batchId));
            $storage->update(static::collectUpdates($batchId));

            if ($storage instanceof TerminableRepository) {
                $storage->terminate();
            }
        } catch (Exception $e) {
            app(ExceptionHandler::class)->report($e);
        }

        static::$entriesQueue = [];
        static::$updatesQueue = [];
    }
public static function store(EntriesRepository $storage)
    {
        if (empty(static::$entriesQueue) && empty(static::$updatesQueue)) {
            return;
        }

        if (! collect(static::$filterBatchUsing)->every->__invoke(collect(static::$entriesQueue))) {
            static::flushEntries();
        }

        try {
            $batchId = Str::orderedUuid()->toString();

            $storage->store(static::collectEntries($batchId));
            $storage->update(static::collectUpdates($batchId));

            if ($storage instanceof TerminableRepository) {
                $storage->terminate();
            }
        } catch (Exception $e) {
            app(ExceptionHandler::class)->report($e);
        }

        static::$entriesQueue = [];
        static::$updatesQueue = [];
    }
public static function store ( EntriesRepository $ storage ) { if ( empty ( static :: $ entriesQueue ) && empty ( static :: $ updatesQueue ) ) { return ; } if ( ! collect ( static :: $ filterBatchUsing ) -> every -> __invoke ( collect ( static :: $ entriesQueue ) ) ) { static :: flushEntries ( ) ; } try { $ batchId = Str :: orderedUuid ( ) -> toString ( ) ; $ storage -> store ( static :: collectEntries ( $ batchId ) ) ; $ storage -> update ( static :: collectUpdates ( $ batchId ) ) ; if ( $ storage instanceof TerminableRepository ) { $ storage -> terminate ( ) ; } } catch ( Exception $ e ) { app ( ExceptionHandler :: class ) -> report ( $ e ) ; } static :: $ entriesQueue = [ ] ; static :: $ updatesQueue = [ ] ; }
Store the queued entries and flush the queue.

@param  \Laravel\Telescope\Contracts\EntriesRepository  $storage
@return void
Store the queued entries and flush the queue .