| 1 | <?php |
||
| 2 | |||
| 3 | namespace Digikraaft\StripePaymentsTile; |
||
| 4 | |||
| 5 | use Illuminate\Support\ServiceProvider; |
||
| 6 | use Livewire\Livewire; |
||
| 7 | |||
| 8 | class StripePaymentsTileServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | public function boot() |
||
| 11 | { |
||
| 12 | if ($this->app->runningInConsole()) { |
||
| 13 | $this->commands([ |
||
| 14 | FetchPaymentsDataFromStripeApi::class, |
||
| 15 | ]); |
||
| 16 | } |
||
| 17 | |||
| 18 | $this->publishes([ |
||
| 19 | __DIR__ . '/../resources/views' => resource_path('views/vendor/stripe-payments-tile'), |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 20 | ], 'stripe-payments-tile-views'); |
||
| 21 | |||
| 22 | $this->loadViewsFrom(__DIR__ . '/../resources/views', 'dashboard-stripe-payments-tile'); |
||
| 23 | |||
| 24 | Livewire::component('stripe-payments-tile', StripePaymentsTileComponent::class); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |