我想在laravel 5中禁用社交日志,我怎么能这么做?我尝试了不同的方法,但结果是一样的,而不是为我工作。
如何做到这一点,如何在Laravel 5中禁用日志文件?
我只是不想只禁用(社交名流),而不是其他日志。
发布于 2019-06-29 19:58:15
可以将异常类型添加到项目中异常处理程序类( $dontReport )的$dontReport属性中,以防止记录这些异常。例如:
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
\Laravel\Socialite\Two\InvalidStateException
];有关更多信息,请参见Laravel的错误处理文档。
https://stackoverflow.com/questions/56786311
复制相似问题