Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laravel配置问题 #1

Open
kechujian opened this issue Oct 25, 2018 · 3 comments
Open

laravel配置问题 #1

kechujian opened this issue Oct 25, 2018 · 3 comments

Comments

@kechujian
Copy link

laravel的配置文件一般都是固定名称的,现在使用这个插件,是需要去改变这些配置文件的读取地址吗?类似database.php,还是这个插件是有其他使用方式的?

@lackhurt
Copy link
Owner

lackhurt commented Oct 31, 2018

@kechujian 正常使用这个扩展,只需要改 .env 的配置就行。不知道是不是我没理解你意思?

@kechujian
Copy link
Author

应该是我没有表达清楚,比如database.php文件中
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST'),
'port' => env('DB_PORT'),
'database' => env('DB_DATABASE')
],
我想把host改成由apollo去配置修改,应该怎么操作呢?

@whistlesun
Copy link
Contributor

我的理解是直接写入到.env 文件即可,其他代码不需要改动,唯一值得注意的就是一些常驻脚本需要重启才能生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants