Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.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应用程序的PHP时区问题_Php_Laravel - Fatal编程技术网

laravel应用程序的PHP时区问题

laravel应用程序的PHP时区问题,php,laravel,Php,Laravel,当我试图启动现有的laravel应用程序时,它抱怨如下 {"error":{"type":"ErrorException","message":"Undefined index: timezone","file":"\/var\/www\/html\/PROJECT_FOLDER\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/start.php","line":167}} date.timezone = Asia/Singa

当我试图启动现有的laravel应用程序时,它抱怨如下

{"error":{"type":"ErrorException","message":"Undefined index: timezone","file":"\/var\/www\/html\/PROJECT_FOLDER\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/start.php","line":167}}
date.timezone = Asia/Singapore
session.gc_maxlifetime=72000
我已经将时区固定如下

{"error":{"type":"ErrorException","message":"Undefined index: timezone","file":"\/var\/www\/html\/PROJECT_FOLDER\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/start.php","line":167}}
date.timezone = Asia/Singapore
session.gc_maxlifetime=72000

但我明白了。有人能给我下一步的建议吗。

有人能给我下一步的建议吗?您是否尝试在
.env
config/app.php
中更改时区?是的,我尝试过如果您在服务器运行期间更改时区,请停止服务器,清除缓存并再次启动服务器。尝试使用Artisan清除缓存。是否有人可以建议我下一步?您是否尝试在
.env
config/app.php
中更改时区?是的,我已尝试过。如果您在服务器运行期间更改了时区,请停止服务器,清除缓存并再次启动服务器。尝试使用artisan清除缓存