> For the complete documentation index, see [llms.txt](https://liseen315.gitbook.io/laravel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liseen315.gitbook.io/laravel/shu-ju-ku-he-eloquent/pei-zhi.md).

# 配置

在我们了解如何使用Laravel的数据库工具前,我们先讨论一下如何配置数据库以及连接

数据库访问配置在config/database.php和.env中.就像Laravel的许多其他配置一样,你可以定义多个"链接",然后决定默认使用哪个配置.
