/home/techb158/ileadtechnology.com/SSM/vendor/laravel/telescope/src/Watchers
NameSizeModeActions
CacheWatcher.php33810644editdlrm
CommandWatcher.php14940644editdlrm
DumpWatcher.php16310644editdlrm
EventWatcher.php44460644editdlrm
ExceptionWatcher.php21960644editdlrm
FetchesStackTrace.php9510644editdlrm
FormatsClosure.php5750644editdlrm
GateWatcher.php20340644editdlrm
JobWatcher.php44240644editdlrm
LogWatcher.php16230644editdlrm
MailWatcher.php26000644editdlrm
ModelWatcher.php16960644editdlrm
NotificationWatcher.php23930644editdlrm
QueryWatcher.php30700644editdlrm
RedisWatcher.php22590644editdlrm
RequestWatcher.php64240644editdlrm
ScheduleWatcher.php21190644editdlrm
ViewWatcher.php49740644editdlrm
Watcher.php5760644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/laravel/telescope/src/Watchers/ScheduleWatcher.php (2119B)
listen(CommandStarting::class, [$this, 'recordCommand']); } /** * Record a scheduled command was executed. * * @param \Illuminate\Console\Events\CommandStarting $event * @return void */ 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), ])); }); }); } /** * Get the output for the scheduled event. * * @param \Illuminate\Console\Scheduling\Event $event * @return string|null */ protected function getEventOutput(Event $event) { if (! $event->output || $event->output === $event->getDefaultOutput() || $event->shouldAppendOutput || ! file_exists($event->output)) { return ''; } return trim(file_get_contents($event->output)); } }