有没有办法在本地环境下禁用laravel 5的sentry?我已从我的.env文件中移除了SENTRY_DSN条目,看起来它已经生效了,但我不确定这是正确的方法。我应该在report函数中添加一些关于env的检查吗?还是有更好的方法?App\Exceptions\Handler 如下所示:
public function report(Exception $e)
{
if ($this->shouldReport($e)) {
app('sentry')->captureException($e);
}
parent::report($e);
}