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