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
9f1b5819
Unverified
Commit
9f1b5819
authored
Feb 04, 2020
by
Divine
Committed by
GitHub
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explanation for not working classess
parent
e2e59179
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
README.md
README.md
+13
-2
No files found.
README.md
View file @
9f1b5819
...
...
@@ -117,18 +117,29 @@ docker-compose up
Database Testing
-------
Resetting The Database After Each Test
To reset the database after each test, add:
```
php
use
Illuminate\Foundation\Testing\DatabaseMigrations
;
```
A
nd inside each test classes.
A
lso inside each test classes, add:
```
php
use
DatabaseMigrations
;
```
Keep in mind that currently this isn't supported and should be removed:
```
php
use
DatabaseTransactions
;
```
and
```
php
use
RefreshDatabase
;
```
Configuration
-------------
You can use MongoDB either as the main database, either as a side database. To do so, add a new
`mongodb`
connection to
`config/database.php`
:
...
...
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