基础配置参考该网站:https://laravel-china.org/articles/2560/using-mongodb-in-laravel
需要注意的是
添加 MongoDB 的数据库的信息:
'mongodb' => [
'driver' => 'mongodb',
'host' => 'localhost',
'port' => 27017,
'database' => 'mydb',
'username' => '',
'password' => '',
],
基础配置参考该网站:https://laravel-china.org/articles/2560/using-mongodb-in-laravel
需要注意的是
添加 MongoDB 的数据库的信息:
'mongodb' => [
'driver' => 'mongodb',
'host' => 'localhost',
'port' => 27017,
'database' => 'mydb',
'username' => '',
'password' => '',
],