Commit e2e59179 authored by Ditty's avatar Ditty

Add explanation for database migration resets

Co-Authored-By: 's avatartheminer3746 <theminer@theminerdev.com>
parent c55d42de
...@@ -16,6 +16,7 @@ This package adds functionalities to the Eloquent model and Query builder for Mo ...@@ -16,6 +16,7 @@ This package adds functionalities to the Eloquent model and Query builder for Mo
- [Lumen](#lumen) - [Lumen](#lumen)
- [Non-Laravel projects](#non-laravel-projects) - [Non-Laravel projects](#non-laravel-projects)
- [Testing](#testing) - [Testing](#testing)
- [Database Testing](#database-testing)
- [Configuration](#configuration) - [Configuration](#configuration)
- [Eloquent](#eloquent) - [Eloquent](#eloquent)
- [Extending the base model](#extending-the-base-model) - [Extending the base model](#extending-the-base-model)
...@@ -113,6 +114,21 @@ To run the test for this package, run: ...@@ -113,6 +114,21 @@ To run the test for this package, run:
docker-compose up docker-compose up
``` ```
Database Testing
-------
Resetting The Database After Each Test
```php
use Illuminate\Foundation\Testing\DatabaseMigrations;
```
And inside each test classes.
```php
use DatabaseMigrations;
```
Configuration 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`: 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`:
......
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 to comment