如何清除Laravel Bootstrap缓存配置文件? [英] how to clean Laravel Bootstrap cache config file?

查看:1064
本文介绍了如何清除Laravel Bootstrap缓存配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地开发了laravel应用,并在共享托管中上传.

I developed laravel app locally and uploaded in shared hosting.

在托管时,我在.env和config/database文件中更改了mysql的数据库名称和用户名.

While hosting I changed the database name and username of mysql in the .env and the config/database files.

但是在远程情况下,它仍然使用在bootstrap/cache/config文件中找到的旧数据库名称和用户.

But in remote its still using the old db name and user which is found in the bootstrap/cache/config file.

那么如何清理bootstrap/cache/config.php文件?

So how to clean the bootstrap/cache/config.php file?

推荐答案

使用php artisan cache:clear刷新应用程序的缓存.

Use php artisan cache:clear to flush the application's cache.

这篇关于如何清除Laravel Bootstrap缓存配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆