Laravel,安装honeybadger,识别用户的问题

时间:2018-12-23 11:11:42

标签: laravel

我已经在Laravel安装中安装了Honeybadger,而且效果很好,唯一的问题是识别用户。 试图按照说明进行操作,但没有显示。 认为我做错了,但不确定我失败了。

我希望你们中的一个聪明人可以告诉我我在做什么错:)

文档: https://docs.honeybadger.io/lib/php/integration/laravel.html

与识别用户身份有关的代码:

(in app/Http/Kernel.php)
    protected $middlewareGroups = [
        'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            // \Illuminate\Session\Middleware\AuthenticateSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
            \Honeybadger\HoneybadgerLaravel\Middleware\UserContext::class,
        ],

        'api' => [
            'throttle:60,1',
            'bindings',
        ],
    ];

0 个答案:

没有答案