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