Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
99d2a82e
authored
Mar 31, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
2e5caa15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/HdController.php
config/database.php
app/Http/Controllers/HdController.php
View file @
99d2a82e
...
...
@@ -25,7 +25,7 @@ class HdController extends Controller
//添加参数
private
function
cf
(){
$mongo
=
\DB
::
connection
(
"mongodb
s
"
)
$mongo
=
\DB
::
connection
(
"mongodb"
)
->
collection
(
"spu"
)
// ->where("****","***")
->
first
();
...
...
config/database.php
View file @
99d2a82e
...
...
@@ -122,7 +122,7 @@ return [
'password'
=>
env
(
'RABBITMQ_PASSWORD'
,
'guest'
),
'queue'
=>
env
(
'RABBITMQ_QUEUE'
),
// name of the default queue,
],
'mongodb
s
'
=>
[
'mongodb'
=>
[
'driver'
=>
'mongodb'
,
'host'
=>
env
(
'DB_MONGO_HOST'
,
''
),
'database'
=>
env
(
'DB_MONGO_DATABASE'
,
''
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment