File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 9999
100100 Watchers \QueryWatcher::class => [
101101 'enabled ' => env ('TELESCOPE_QUERY_WATCHER ' , true ),
102+ 'ignore_packages ' => true ,
102103 'slow ' => 100 ,
103104 ],
104105
Original file line number Diff line number Diff line change @@ -80,8 +80,20 @@ protected function getCallerFromStackTrace()
8080 }
8181
8282 return ! Str::contains ($ frame ['file ' ],
83- base_path ('vendor ' .DIRECTORY_SEPARATOR .' laravel ' )
83+ base_path ('vendor ' .DIRECTORY_SEPARATOR .$ this -> ignoredVendorPath () )
8484 );
8585 });
8686 }
87+
88+ /**
89+ * Choose the frame outside of either Telescope/Laravel or all packages.
90+ *
91+ * @return string|null
92+ */
93+ protected function ignoredVendorPath ()
94+ {
95+ if (! ($ this ->options ['ignore_packages ' ] ?? true )) {
96+ return 'laravel ' ;
97+ }
98+ }
8799}
You can’t perform that action at this time.
0 commit comments