Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function setUpDatabase(callable $afterMigrations = null) |
||
29 | { |
||
30 | if (static::$migrated) { |
||
31 | return; |
||
32 | } |
||
33 | |||
34 | $this->artisan('migrate'); |
||
35 | |||
36 | $this->app[Kernel::class]->setArtisan(null); |
||
37 | |||
38 | if ($afterMigrations) { |
||
39 | $afterMigrations(); |
||
40 | } |
||
41 | |||
42 | static::$migrated = true; |
||
43 | } |
||
44 | |||
76 |
If you suppress an error, we recommend checking for the error condition explicitly: