Ami*_*ehi 7 php exception sentry laravel
我已经在 Laravel 项目上安装了 Sentry,但无法运行它,每当我运行命令时,php artisan sentry:test
结果是:
[Sentry] DSN discovered!
[Sentry] Generating test Event
[Sentry] Sending test Event
[Sentry] There was an error sending the test event.
[Sentry] Please check if your DSN is set properly in your config or `.env` as `SENTRY_LARAVEL_DSN`.
Run Code Online (Sandbox Code Playgroud)
但我已在 .env 文件中添加了 DSN
小智 2
确保将 DSN 放入 .env 文件中,如下所示
SENTRY_LARAVEL_DSN=https://34412344274048ccbfasfdgdffaf7f38d47c@o111111111.ingest.sentry.io/222334456
Run Code Online (Sandbox Code Playgroud)
并且不要忘记缓存配置
PHP artisan config:cache
Run Code Online (Sandbox Code Playgroud)