| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 19 | public function runDatabaseMigrations() |
|
| 21 | { |
||
| 22 | 19 | $this->artisan('migrate:fresh'); |
|
|
|
|||
| 23 | 19 | $this->artisan('cache:clear'); |
|
| 24 | 19 | $this->artisan('db:seed'); |
|
| 25 | |||
| 26 | $this->beforeApplicationDestroyed(function () { |
||
| 27 | 19 | $this->artisan('cache:clear'); |
|
| 28 | 19 | $this->artisan('migrate:rollback'); |
|
| 29 | 19 | RefreshDatabaseState::$migrated = false; |
|
| 30 | 19 | }); |
|
| 33 |