Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
14 | 14 | public function boot() |
|
15 | { |
||
16 | 14 | Validator::extend('context_prohibited', ContextProhibited::class); |
|
17 | |||
18 | /* |
||
19 | * Optional methods to load your package assets |
||
20 | */ |
||
21 | 14 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'context-prohibited-rule'); |
|
22 | |||
23 | 14 | if ($this->app->runningInConsole()) { |
|
24 | 14 | $this->publishes([ |
|
25 | 14 | __DIR__.'/../config/config.php' => config_path('context-prohibited-rule.php'), |
|
26 | 14 | ], 'config'); |
|
27 | } |
||
28 | 14 | } |
|
29 | |||
39 |