Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
62669d25
Commit
62669d25
authored
Aug 29, 2016
by
Diego Felix
Committed by
GitHub
Aug 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated config file path
parent
cd75b176
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+2
-2
No files found.
README.md
View file @
62669d25
...
@@ -104,7 +104,7 @@ $books = $user->books()->sortBy('title');
...
@@ -104,7 +104,7 @@ $books = $user->books()->sortBy('title');
Configuration
Configuration
-------------
-------------
Change your default database connection name in
`
app/
config/database.php`
:
Change your default database connection name in
`config/database.php`
:
```
php
```
php
'default'
=>
env
(
'DB_CONNECTION'
,
'mongodb'
),
'default'
=>
env
(
'DB_CONNECTION'
,
'mongodb'
),
...
@@ -179,7 +179,7 @@ Everything else (should) work just like the original Eloquent model. Read more a
...
@@ -179,7 +179,7 @@ Everything else (should) work just like the original Eloquent model. Read more a
### Optional: Alias
### Optional: Alias
You may also register an alias for the MongoDB model by adding the following to the alias array in
`
app/
config/app.php`
:
You may also register an alias for the MongoDB model by adding the following to the alias array in
`config/app.php`
:
```
php
```
php
'Moloquent'
=>
'Jenssegers\Mongodb\Eloquent\Model'
,
'Moloquent'
=>
'Jenssegers\Mongodb\Eloquent\Model'
,
...
...
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