例如:读取config/database.php文件中的mysql这个字段的信息,如下图:
使用config('database.connections.mysql')进行数据读取,如图所示:
效果如下: