Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel Jetstream浏览器会话未列出设备;拉维尔8_Laravel_Session_Jetstream - Fatal编程技术网

Laravel Jetstream浏览器会话未列出设备;拉维尔8

Laravel Jetstream浏览器会话未列出设备;拉维尔8,laravel,session,jetstream,Laravel,Session,Jetstream,在我的开发环境中,注销其他浏览器会话“功能运行良好。但是,在生产环境中,“注销其他浏览器会话”功能不起作用。它也不显示设备 参考资料/views/profile/logout-other-browser-sessions-form.blade.php <x-jet-action-section> <x-slot name="title"> {{ __('Browser Sessions') }} </x-slot&

在我的开发环境中,注销其他浏览器会话“功能运行良好。但是,在生产环境中,“注销其他浏览器会话”功能不起作用。它也不显示设备

参考资料/views/profile/logout-other-browser-sessions-form.blade.php

<x-jet-action-section>
    <x-slot name="title">
        {{ __('Browser Sessions') }}
    </x-slot>
    <x-slot name="description">
        {{ __('Manage and log out your active sessions on other browsers and devices.') }}
    </x-slot>
    <x-slot name="content">
        <div class="max-w-xl text-sm text-gray-600">
            {{ __('If necessary, you may log out of all of your other browser sessions across all of your devices. Some of your recent sessions are listed below; however, this list may not be exhaustive. If you feel your account has been compromised, you should also update your password.') }}
        </div>
        @if (count($this->sessions) > 0)
          There are = {{ count($this->sessions) }}
        @else
          There are NO sessions
        @endif
        @if (count($this->sessions) > 0)
        ...


{{{(“浏览器会话”)}
{{{(“管理并注销其他浏览器和设备上的活动会话”。)}
{{{{}(“如有必要,您可以在所有设备上注销所有其他浏览器会话。下面列出了您最近的一些会话;但是,此列表可能并不详尽。如果您觉得您的帐户已被泄露,您还应更新密码。”)}
@如果(计数($this->sessions)>0)
有={{count($this->sessions)}
@否则
没有会议
@恩迪夫
@如果(计数($this->sessions)>0)
...
开发环境

产品环境


有人知道为什么会发生这种情况吗?

您需要将驱动程序会话到.env文件中的“数据库”。非常感谢Dejan Prole。此外,我还运行了
$php artisan config:cache
。它现在正在工作。