We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a494fe0 commit f0bf395Copy full SHA for f0bf395
src/Commands/WorkCommand.php
@@ -55,11 +55,23 @@ public function handle(
55
$lastTrimmedStorageAt = $now;
56
}
57
58
+ $this->ensureTelescopeEntriesAreCollected();
59
+
60
if ($this->option('stop-when-empty')) {
61
return self::SUCCESS;
62
63
64
Sleep::for(1)->second();
65
66
67
68
+ /**
69
+ * Schedule Telescope to store entries if enabled.
70
+ */
71
+ protected function ensureTelescopeEntriesAreCollected(): void
72
+ {
73
+ if ($this->laravel->bound(\Laravel\Telescope\Contracts\EntriesRepository::class)) {
74
+ \Laravel\Telescope\Telescope::store($this->laravel->make(\Laravel\Telescope\Contracts\EntriesRepository::class));
75
+ }
76
77
0 commit comments