Telescope 请求跟踪问题
ykxiao opened this issue · comments
-
Your software version (Screenshot of your startup)
Software Version PHP 7.4.33 Swoole 4.5.11 Laravel/Lumen 8.83.27 -
Detail description about this issue(error/log)
laravel-s 环境下使用 telescope,配置后请求不跟踪了,其他还需要配置吗。也配置了:APP_RUNNING_IN_CONSOLE=false
-
Some
reproducible
code blocks andsteps
已修改:`app/Providers/EventServiceProvider.php` Event::listen('laravels.received_request', function ($request, $app) { $reflection = new \ReflectionClass(Telescope::class); $handlingApprovedRequest = $reflection->getMethod('handlingApprovedRequest'); $handlingApprovedRequest->setAccessible(true); $handlingApprovedRequest->invoke(null, $app) ? Telescope::startRecording() : Telescope::stopRecording(); });