VerifyCsrfToken.php中的TokenMismatchException,因为我更新了我的Box Homestead

时间:2017-02-13 15:27:41

标签: laravel vagrant homestead

所以,我只是想安装最新版本的PHP GD来修复像素问题。

从那时起,我已经打破了很多东西,包括我的流浪汉/宅基地箱。

我记得我已经改变了一些许可,我认为这是主要问题。

那么您是否知道哪个文件夹具有哪种权限?

1 个答案:

答案 0 :(得分:0)

从您的项目目录

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

Laravel框架文件权限 - 安全性

https://laracasts.com/discuss/channels/general-discussion/laravel-framework-file-permission-security

如果不起作用,请尝试销毁/重建宅基地箱。

另外,我会跑:

artisan view:clear
artisan cache:clear
artisan config:clear
artisan clear-compiled
composer dump-autoload
相关问题