date_default_timezone_set(): Timezone ID ” is invalid, when I run command php artisan optimize

  Kiến thức lập trình

enter image description here
I have this problem when I run optimize command, it give timezone error while I set the timezone in app.php file to UTC.

I want to optimize my code, I figured out this error by self, when it cached the config setting it set the timezone null, I don’t know why.

LEAVE A COMMENT