/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/ModelWatcher.php (1696B)
listen($this->options['events'] ?? 'eloquent.*', [$this, 'recordAction']); } /** * Record an action. * * @param string $event * @param array $data * @return void */ public function recordAction($event, $data) { if (! Telescope::isRecording() || ! $this->shouldRecord($event)) { return; } $model = FormatModel::given($data[0]); $changes = $data[0]->getChanges(); Telescope::recordModelEvent(IncomingEntry::make(array_filter([ 'action' => $this->action($event), 'model' => $model, 'changes' => empty($changes) ? null : $changes, ]))->tags([$model])); } /** * Extract the Eloquent action from the given event. * * @param string $event * @return mixed */ private function action($event) { preg_match('/\.(.*):/', $event, $matches); return $matches[1]; } /** * Determine if the Eloquent event should be recorded. * * @param string $eventName * @return bool */ private function shouldRecord($eventName) { return Str::is([ '*created*', '*updated*', '*restored*', '*deleted*', ], $eventName); } }