Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function boot() |
||
14 | { |
||
15 | // Translations |
||
16 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'recaptcha'); |
||
17 | |||
18 | // Views |
||
19 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'recaptcha'); |
||
20 | |||
21 | // Configuration |
||
22 | if ($this->app->runningInConsole()) { |
||
23 | $this->publishes([ |
||
24 | __DIR__.'/../config/config.php' => config_path('recaptcha.php'), |
||
25 | ], 'config'); |
||
26 | } |
||
27 | |||
28 | // Custom Validator |
||
29 | Validator::extend('recaptcha', 'Guiliredu\LaravelSimpleRecaptcha\RecaptchaValidator@validate'); |
||
30 | } |
||
31 | |||
46 |