File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ parameters:
2
2
paths:
3
3
- src
4
4
level: 8
5
+ ignoreErrors:
6
+ - "#Class Laravel\\\\Telescope\\\\Contracts\\\\EntriesRepository not found#"
7
+ - "#Call to static method store\\(\\) on an unknown class Laravel\\\\Telescope\\\\Telescope#"
Original file line number Diff line number Diff line change @@ -68,11 +68,23 @@ public function handle(
68
68
69
69
$ pulse ->ingest ();
70
70
71
+ $ this ->ensureTelescopeEntriesAreCollected ();
72
+
71
73
if ($ isVapor || $ this ->option ('once ' )) {
72
74
return self ::SUCCESS ;
73
75
}
74
76
75
77
Sleep::until ($ now ->addSecond ());
76
78
}
77
79
}
80
+
81
+ /**
82
+ * Schedule Telescope to store entries if enabled.
83
+ */
84
+ protected function ensureTelescopeEntriesAreCollected (): void
85
+ {
86
+ if ($ this ->laravel ->bound (\Laravel \Telescope \Contracts \EntriesRepository::class)) {
87
+ \Laravel \Telescope \Telescope::store ($ this ->laravel ->make (\Laravel \Telescope \Contracts \EntriesRepository::class));
88
+ }
89
+ }
78
90
}
You can’t perform that action at this time.
0 commit comments