Commit 99d2a82e by hcy001

1

parent 2e5caa15
...@@ -25,7 +25,7 @@ class HdController extends Controller ...@@ -25,7 +25,7 @@ class HdController extends Controller
//添加参数 //添加参数
private function cf(){ private function cf(){
$mongo = \DB::connection("mongodbs") $mongo = \DB::connection("mongodb")
->collection("spu") ->collection("spu")
// ->where("****","***") // ->where("****","***")
->first(); ->first();
......
...@@ -122,7 +122,7 @@ return [ ...@@ -122,7 +122,7 @@ return [
'password' => env('RABBITMQ_PASSWORD', 'guest'), 'password' => env('RABBITMQ_PASSWORD', 'guest'),
'queue' => env('RABBITMQ_QUEUE'), // name of the default queue, 'queue' => env('RABBITMQ_QUEUE'), // name of the default queue,
], ],
'mongodbs' => [ 'mongodb' => [
'driver' => 'mongodb', 'driver' => 'mongodb',
'host' => env('DB_MONGO_HOST', ''), 'host' => env('DB_MONGO_HOST', ''),
'database' => env('DB_MONGO_DATABASE', ''), 'database' => env('DB_MONGO_DATABASE', ''),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment