天天看點

laravel log

laravel架構在Illuminate\Foundation\Exceptions\Handler中設定了

protected $internalDontReport = [

        AuthenticationException::class,

        AuthorizationException::class,

        HttpException::class,

        HttpResponseException::class,

        ModelNotFoundException::class,

        SuspiciousOperationException::class,

        TokenMismatchException::class,

        ValidationException::class,

];

即以上異常不會記錄日志,隻需要在app\Exceptions\Handler中設定