/home/techb158/ileadtechnology.com/SSM/vendor/laravel/telescope/src/Watchers
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/laravel/telescope/src/Watchers/CommandWatcher.php (1494B)
listen(CommandFinished::class, [$this, 'recordCommand']);
}
/**
* Record an Artisan command was executed.
*
* @param \Illuminate\Console\Events\CommandFinished $event
* @return void
*/
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(),
]));
}
/**
* Determine if the event should be ignored.
*
* @param mixed $event
* @return bool
*/
private function shouldIgnore($event)
{
return in_array($event->command, array_merge($this->options['ignore'] ?? [], [
'schedule:run',
'schedule:finish',
'package:discover',
]));
}
}