且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何停止Laravel 5的缓存配置?

更新时间:2023-02-19 17:51:11

您不能停止缓存配置文件,因为它不会自动发生.您唯一要做的就是不要调用config:cache.

You can't stop the caching of config files since it doesn't happen automatically. The only thing you need to do, is not call config:cache.

文件本身可以在bootstrap/cache/config.php中找到.

The file itself can be found in bootstrap/cache/config.php.

注意,已编译的配置文件的位置最近已更改.您可能也位于vendor/config.phpstorage/framework/config.php中.全新安装或运行composer update时,文件应位于bootstrap/cache中.

Note that the location of the compiled config file has changed recently. Yours might also be in vendor/config.php or storage/framework/config.php. With a fresh install or if you run composer update the file should be in bootstrap/cache though.