标签: php laravel sentry
我无法在Artisan命令中向Sentry发送错误异常。请有经验的人帮助我。
app('sentry')->captureException(new \Exception("error"));
此功能在Controller中有效,但在Artisan命令中无效。我根本没有在Sentry中看到任何问题或事件。