src/Watchers/ScheduleWatcher.php
public function recordCommand(CommandStarting $event)
    {
        if (! Telescope::isRecording() ||
            $event->command !== 'schedule:run' &&
            $event->command !== 'schedule:finish') {
            return;
        }

        collect(app(Schedule::class)->events())->each(function ($event) {
            $event->then(function () use ($event) {
                Telescope::recordScheduledCommand(IncomingEntry::make([
                    'command' => $event instanceof CallbackEvent ? 'Closure' : $event->command,
                    'description' => $event->description,
                    'expression' => $event->expression,
                    'timezone' => $event->timezone,
                    'user' => $event->user,
                    'output' => $this->getEventOutput($event),
                ]));
            });
        });
    }
public function recordCommand(CommandStarting $event)
    {
        if (! Telescope::isRecording() ||
            $event->command !== 'schedule:run' &&
            $event->command !== 'schedule:finish') {
            return;
        }

        collect(app(Schedule::class)->events())->each(function ($event) {
            $event->then(function () use ($event) {
                Telescope::recordScheduledCommand(IncomingEntry::make([
                    'command' => $event instanceof CallbackEvent ? 'Closure' : $event->command,
                    'description' => $event->description,
                    'expression' => $event->expression,
                    'timezone' => $event->timezone,
                    'user' => $event->user,
                    'output' => $this->getEventOutput($event),
                ]));
            });
        });
    }
public function recordCommand ( CommandStarting $ event ) { if ( ! Telescope :: isRecording ( ) || $ event -> command !== 'schedule:run' && $ event -> command !== 'schedule:finish' ) { return ; } collect ( app ( Schedule :: class ) -> events ( ) ) -> each ( function ( $ event ) { $ event -> then ( function ( ) use ( $ event ) { Telescope :: recordScheduledCommand ( IncomingEntry :: make ( [ 'command' => $ event instanceof CallbackEvent ? 'Closure' : $ event -> command , 'description' => $ event -> description , 'expression' => $ event -> expression , 'timezone' => $ event -> timezone , 'user' => $ event -> user , 'output' => $ this -> getEventOutput ( $ event ) , ] ) ) ; } ) ; } ) ; }
Record a scheduled command was executed.

@param  \Illuminate\Console\Events\CommandStarting  $event
@return void
Record a scheduled command was executed .