摘要: 方法1(推荐): DB::connection('write')->table('a')->get(); #在 config/database.php 配置文件里面配置读库 'write' => [ 'driver' => 'mysql', 'host' => env('DB_WRITE_HOST' 阅读全文
posted @ 2021-07-23 10:50 流浪2024 阅读(286) 评论(0) 推荐(0)