/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/ExceptionWatcher.php (2196B)
listen(MessageLogged::class, [$this, 'recordException']); } /** * Record an exception was logged. * * @param \Illuminate\Log\Events\MessageLogged $event * @return void */ public function recordException(MessageLogged $event) { if (! Telescope::isRecording() || $this->shouldIgnore($event)) { return; } $exception = $event->context['exception']; $trace = collect($exception->getTrace())->map(function ($item) { return Arr::only($item, ['file', 'line']); })->toArray(); Telescope::recordException( IncomingExceptionEntry::make($exception, [ 'class' => get_class($exception), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'message' => $exception->getMessage(), 'trace' => $trace, 'line_preview' => ExceptionContext::get($exception), ])->tags($this->tags($event)) ); } /** * Extract the tags for the given event. * * @param \Illuminate\Log\Events\MessageLogged $event * @return array */ protected function tags($event) { return array_merge(ExtractTags::from($event->context['exception']), $event->context['telescope'] ?? [] ); } /** * Determine if the event should be ignored. * * @param mixed $event * @return bool */ private function shouldIgnore($event) { return ! isset($event->context['exception']) || ! $event->context['exception'] instanceof Exception; } }