Issue with session storage

会话存储与我的Laravel 5不兼容.使用了一个月没有问题.但自从最近一次上传到网络服务器后,我在每一页上都得到了以下回复.

ErrorException in Filesystem.php line 74:
file_put_contents(): Exclusive locks are not supported for this stream

互联网上的许多帖子都表示要删除对

$lock on line 74 in Filesystem.php

看起来像是一个快速的解决办法,这将导致future 的其他问题.

How do I take care of the root cause?

References

https://stackoverflow.com/questions/29023948/laravel-5-file-put-contents-exclusive-locks-are-not-supported-for-this-stre https://laracasts.com/discuss/channels/general-discussion/l5-new-install-error

推荐答案

更新后做什么

chmod -R gu+w storage

chmod -R guo+w storage

php artisan cache:clear

Laravel相关问答推荐

如何重置laravel ui密码

当使用Craftable PRO时,Wysiwig是什么时候生成的?

使用 fetch api 时 Laravel 控制器不存在错误

laravel 关系集合上的自定义排序

我在哪里放置事件侦听器和处理程序?

Laravel 5.4 中的自定义助手类

会话中的 Laravel 存储数组

在 Laravel 中无效后防止重定向到主页

将 hasOne 模型附加到另一个 Laravel/Eloquent 模型而不指定 id

如何在 Eloquent 上设置条件关系

如何创建具有关系的 Eloquent 模型?

如何在 Laravel 中实现数组类型路由?

Laravel 同步错误

在 Laravel 5 中找不到类App\Http\Controllers\Artisan

Laravel 更新语法 - 使用数组更新记录

laravel 如何读取 app/config/app.php 调试变量

在 Laravel artisan 命令中使用详细

Lumen/Laravel 6:调用未定义的函数 array_except()

在哪里放置 Blade::extend

Laravel Route 模型与关系绑定