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



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

从那以后,我打破了很多东西,主要是我的流浪者/宅基地盒子。

我记得更改了一些权限,我认为这是主要问题。

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

从您的项目目录中

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

最新更新