| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function boot() |
||
| 11 | { |
||
| 12 | if ($this->app->runningInConsole()) { |
||
| 13 | $this->publishes([ |
||
| 14 | __DIR__.'/../config/stripe-webhooks.php' => config_path('stripe-webhooks.php'), |
||
| 15 | ], 'config'); |
||
| 16 | } |
||
| 17 | |||
| 18 | Route::macro('stripeWebhooks', function ($url) { |
||
| 19 | return Route::post($url, '\Spatie\StripeWebhooks\StripeWebhooksController'); |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | |||
| 28 |