【发布时间】:2020-12-08 04:00:10
【问题描述】:
谁能告诉我如何解决这个问题
Cache store [] is not defined.
我正在尝试更改项目名称。我总是这样做:
- 在 config/app.php 中更改 APP_NAME
- 在 .env 中更改 APP_NAME
- 运行 php artisan config:cache 和 php artisan config:clear
但是这两个命令显示错误,我在互联网上找不到解决方案。
两行代码都出现相同的错误,这里是完整报告的图像: https://prnt.sc/u1w9cb
这里是 config/app.php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to place the application's name in a notification or
| any other location as required by the application or its packages.
|
*/
'name' => env('APP_NAME', 'CHATTY'),
【问题讨论】:
-
不要更改
config/app.php然后检查 -
@Berto99 同样的问题仍然
-
试试
php artisan cache:clear(也请发布配置文件) -
你的缓存驱动是什么?
CACHE_DRIVER在您的 .env 文件中,并在 config/cache.php 中加载此行'default' => env('CACHE_DRIVER', 'file'), -
@ClémentBaconnier 问题解决了.. 刚刚做了另一个项目哈哈哈,这一次我做的和我在这个问题出现的项目中做的一样,这次它工作得很好。我可能不小心删除了一些东西。
标签: laravel