Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions my-app/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
|
*/

'default' => env('DB_CONNECTION', 'mongodb'),
'default' => env('mongodb'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I: this syntax causes an error for me when I run a query using DB::collection(). I think you can just directly assign 'mongodb' to 'default':

Suggested change
'default' => env('mongodb'),
'default' => 'mongodb',

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, thought I had deleted that part. Good catch, will fix!


/*
|--------------------------------------------------------------------------
Expand All @@ -36,7 +36,7 @@
'connections' => [
'mongodb' => [
'driver' => 'mongodb',
'dsn' => env('DB_URI', '<connection string>'),
'dsn' => '<connection string>',
'database' => 'sample_mflix',
],

Expand Down