Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | 4 | public function boot() |
|
17 | { |
||
18 | // Load database migration classes |
||
19 | 4 | $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); |
|
20 | |||
21 | // Load command line tool for add cards or categories |
||
22 | 4 | if ($this->app->runningInConsole()) { |
|
23 | 4 | $this->commands([ |
|
24 | 4 | CreateCard::class, |
|
25 | CreateCategory::class, |
||
26 | ]); |
||
27 | } |
||
28 | |||
29 | // Load API routes |
||
30 | 4 | $this->loadRoutesFrom(__DIR__ . '/../../routes/api.php'); |
|
31 | 4 | } |
|
32 | } |
||
33 |