src/Watchers/CommandWatcher.php
public function recordCommand(CommandFinished $event)
    {
        if (! Telescope::isRecording() || $this->shouldIgnore($event)) {
            return;
        }

        Telescope::recordCommand(IncomingEntry::make([
            'command' => $event->command ?? $event->input->getArguments()['command'] ?? 'default',
            'exit_code' => $event->exitCode,
            'arguments' => $event->input->getArguments(),
            'options' => $event->input->getOptions(),
        ]));
    }
public function recordCommand(CommandFinished $event)
    {
        if (! Telescope::isRecording() || $this->shouldIgnore($event)) {
            return;
        }

        Telescope::recordCommand(IncomingEntry::make([
            'command' => $event->command ?? $event->input->getArguments()['command'] ?? 'default',
            'exit_code' => $event->exitCode,
            'arguments' => $event->input->getArguments(),
            'options' => $event->input->getOptions(),
        ]));
    }
public function recordCommand ( CommandFinished $ event ) { if ( ! Telescope :: isRecording ( ) || $ this -> shouldIgnore ( $ event ) ) { return ; } Telescope :: recordCommand ( IncomingEntry :: make ( [ 'command' => $ event -> command ?? $ event -> input -> getArguments ( ) [ 'command' ] ?? 'default' , 'exit_code' => $ event -> exitCode , 'arguments' => $ event -> input -> getArguments ( ) , 'options' => $ event -> input -> getOptions ( ) , ] ) ) ; }
Record an Artisan command was executed.

@param  \Illuminate\Console\Events\CommandFinished  $event
@return void
Record an Artisan command was executed .