centos7.9安装laravel11日志

下载laravel地址:https://github.com/laravel/laravel/releases

下载到指定目录后

1、执行命令:composer install

(如果超时,设置阿里云源 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

2、设置目录权限 /storage/* 包括子目录 777权限

报错production.ERROR: No application encryption key has been specified. {“exception”:”[object] (Illuminate\Encryption\MissingAppKeyException(code: 0)

需要设置.env目录里的APP_KEY值未空,

生成命令:php artisan key:generate

# 每次修改env后清楚缓存

php artisan config:clear
php artisan config:cache

评论已关闭。