如何修复 Laravel 中的文件系统问题

How to fix file system problems in Laravel

我想问一下,当我将Laravel项目移动到VPS时,出现了这样的错误。

https://i.postimg.cc/mr4bB9WX/Screenshot-18.jpg

我所做的是:

$ sudo chown -R $USER:www-data storage
$ sudo chown -R $USER:www-data bootstrap/cache
$ chmod -R 775 storage
$ chmod -R 775 bootstrap/cache
# composer update

转到您的项目文件夹并打开终端。 运行 这个命令

sudo chmod -R 777 theme/gallery

你可以这样做。

sudo chmod -R 755 theme/gallery