Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Tests | 16 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
14 | 63 | public function boot() |
|
15 | { |
||
16 | 63 | if ($this->app->runningInConsole()) { |
|
17 | 63 | $this->commands([ |
|
18 | 63 | \Clarkeash\Doorman\Commands\CleanupCommand::class, |
|
19 | ]); |
||
20 | } |
||
21 | |||
22 | 63 | $this->publishes([ |
|
23 | 63 | __DIR__ . '/../../resources/config/doorman.php' => config_path('doorman.php'), |
|
24 | 63 | ], 'doorman-config'); |
|
25 | |||
26 | 63 | $this->publishes([ |
|
27 | 63 | __DIR__ . '/../../resources/translations' => resource_path('lang/vendor/doorman'), |
|
28 | 63 | ], 'doorman-translations'); |
|
29 | |||
30 | 63 | $this->publishes([ |
|
31 | 63 | __DIR__ . '/../../resources/migrations' => database_path('migrations') |
|
32 | 63 | ], 'doorman-migrations'); |
|
33 | |||
34 | 63 | $this->loadMigrationsFrom(__DIR__ . '/../../resources/migrations'); |
|
35 | 63 | $this->loadTranslationsFrom(__DIR__ . '/../../resources/translations', 'doorman'); |
|
36 | 63 | } |
|
37 | |||
53 |