Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function boot() |
||
13 | { |
||
14 | if ($this->app->runningInConsole()) { |
||
15 | $this->publishes([ |
||
16 | __DIR__.'/../config/honeypot.php' => config_path('honeypot.php'), |
||
17 | ], 'config'); |
||
18 | |||
19 | $this->publishes([ |
||
20 | __DIR__.'/../resources/views' => base_path('resources/views/vendor/honeypot'), |
||
21 | ], 'views'); |
||
22 | } |
||
23 | |||
24 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'honeypot'); |
||
25 | |||
26 | View::composer('honeypot::honeypotFormFields', HoneypotViewComposer::class); |
||
27 | |||
28 | Blade::directive('honeypot', function () { |
||
29 | return "<?php echo view('honeypot::honeypotFormFields'); ?>"; |
||
30 | }); |
||
31 | |||
32 | $this->app->bind(SpamResponder::class, config('honeypot.respond_to_spam_with')); |
||
33 | } |
||
34 | |||
40 |