| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function boot() |
||
| 11 | { |
||
| 12 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'simple-recaptcha-v3'); |
||
| 13 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'simple-recaptcha-v3'); |
||
| 14 | |||
| 15 | if ($this->app->runningInConsole()) { |
||
| 16 | $this->publishes([ |
||
| 17 | __DIR__.'/../config/config.php' => config_path('simple-recaptcha-v3.php'), |
||
| 18 | ], 'config'); |
||
| 19 | |||
| 20 | $this->publishes([ |
||
| 21 | __DIR__.'/../resources/views' => resource_path('views/vendor/simple-recaptcha-v3'), |
||
| 22 | ], 'views'); |
||
| 23 | |||
| 24 | $this->publishes([ |
||
| 25 | __DIR__.'/../resources/lang' => resource_path('lang/vendor/simple-recaptcha-v3'), |
||
| 26 | ], 'lang'); |
||
| 27 | } |
||
| 28 | |||
| 29 | Blade::directive('captcha', function ($action) { |
||
| 30 | return "<?php echo view('simple-recaptcha-v3::captcha', ['action' => {$action}]); ?>"; |
||
| 31 | }); |
||
| 32 | |||
| 33 | Blade::include('simple-recaptcha-v3::captcha-init', 'captcha_init'); |
||
| 34 | } |
||
| 45 |