启用AuthenticateSession中间件后,Laravel登录到管理仪表板重定向到404页面

启用AuthenticateSession中间件后,Laravel登录到管理仪表板重定向到404页面,laravel,session,authentication,admin,laravel-5.7,Laravel,Session,Authentication,Admin,Laravel 5.7,我在使用laravel的简单博客网站上工作,它有两个部分,用户博客网站和管理仪表板 Auth::logoutOtherDevices($request->input('new-password')); 在Http/Kernal.php中取消行下注释之前和之后,一切都很好 \Illuminate\Session\Middleware\AuthenticateSession::class, Auth::logoutOtherDevices($request->input('new

我在使用laravel的简单博客网站上工作,它有两个部分,用户博客网站和管理仪表板

 Auth::logoutOtherDevices($request->input('new-password'));
在Http/Kernal.php中取消行下注释之前和之后,一切都很好

\Illuminate\Session\Middleware\AuthenticateSession::class,
 Auth::logoutOtherDevices($request->input('new-password'));
未能登录并重定向到管理仪表板,它被重定向到404页

 Auth::logoutOtherDevices($request->input('new-password'));
我只想使用
AuthenticateSession
中间件,因为我想使用 登录其他设备用于网站用户的功能

 Auth::logoutOtherDevices($request->input('new-password'));
当我注释掉这一行时,
\illumb\Session\Middleware\AuthenticateSession::class
,它仍然正常工作

 Auth::logoutOtherDevices($request->input('new-password'));
请帮我解决这个问题

 Auth::logoutOtherDevices($request->input('new-password'));
我有用于登录用户的
users
表和用于登录到仪表板的
admin

 Auth::logoutOtherDevices($request->input('new-password'));
以下是管理员的表格:

 Auth::logoutOtherDevices($request->input('new-password'));

 Auth::logoutOtherDevices($request->input('new-password'));
下面是
config/auth.php

 Auth::logoutOtherDevices($request->input('new-password'));
<?php

return [

    'defaults' => [
        'guard' => 'web',
        'passwords' => 'users',
    ],



    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],


        'admin' => [
            'driver' => 'session',
            'provider' => 'admins',
        ],



    ],



    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Model\User::class,
        ],

        'admins' => [
            'driver' => 'eloquent',
            'model' => App\Model\Admin::class,
        ]
    ],



    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
        ],

        'admins' => [
            'provider' => 'admins',
            'table' => 'password_resets',
            'expire' => 60,
        ]
    ],

];

为什么不删除与特定用户相关的所有会话从
sessions
表中删除会话将不会注销用户如果删除会话,则其他登录用户将无法进一步导航,因为会话不存在,那么它将给出419会话过期错误,但用户在重新加载页面时仍保持登录状态,然后处理会话过期错误并将用户重定向到登录页面为什么不删除与特定用户相关的所有会话从
会话中删除会话将不会注销用户如果删除会话,则其他登录用户将无法进一步导航,因为会话不存在Exist然后它将给出419会话过期错误,但用户在重新加载页面时仍保持登录状态,然后处理会话过期错误并将用户重定向到登录页面