80 lines
2.5 KiB
PHP
80 lines
2.5 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||
|
|
||
|
class EventServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* The event listener mappings for the application.
|
||
|
*
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $listen = [
|
||
|
// User Related Events...
|
||
|
'Laravel\Spark\Events\Auth\UserRegistered' => [
|
||
|
'Laravel\Spark\Listeners\Subscription\CreateTrialEndingNotification',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Subscription\UserSubscribed' => [
|
||
|
'Laravel\Spark\Listeners\Subscription\UpdateActiveSubscription',
|
||
|
'Laravel\Spark\Listeners\Subscription\UpdateTrialEndingDate',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Profile\ContactInformationUpdated' => [
|
||
|
'Laravel\Spark\Listeners\Profile\UpdateContactInformationOnStripe',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\PaymentMethod\VatIdUpdated' => [
|
||
|
'Laravel\Spark\Listeners\Subscription\UpdateTaxPercentageOnStripe',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\PaymentMethod\BillingAddressUpdated' => [
|
||
|
'Laravel\Spark\Listeners\Subscription\UpdateTaxPercentageOnStripe',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Subscription\SubscriptionUpdated' => [
|
||
|
'Laravel\Spark\Listeners\Subscription\UpdateActiveSubscription',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Subscription\SubscriptionCancelled' => [
|
||
|
'Laravel\Spark\Listeners\Subscription\UpdateActiveSubscription',
|
||
|
],
|
||
|
|
||
|
// Team Related Events...
|
||
|
'Laravel\Spark\Events\Teams\TeamCreated' => [
|
||
|
'Laravel\Spark\Listeners\Teams\Subscription\CreateTrialEndingNotification',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Teams\Subscription\TeamSubscribed' => [
|
||
|
'Laravel\Spark\Listeners\Teams\Subscription\UpdateActiveSubscription',
|
||
|
'Laravel\Spark\Listeners\Teams\Subscription\UpdateTrialEndingDate',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Teams\Subscription\SubscriptionUpdated' => [
|
||
|
'Laravel\Spark\Listeners\Teams\Subscription\UpdateActiveSubscription',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Teams\Subscription\SubscriptionCancelled' => [
|
||
|
'Laravel\Spark\Listeners\Teams\Subscription\UpdateActiveSubscription',
|
||
|
],
|
||
|
|
||
|
'Laravel\Spark\Events\Teams\UserInvitedToTeam' => [
|
||
|
'Laravel\Spark\Listeners\Teams\CreateInvitationNotification',
|
||
|
],
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* Register any other events for your application.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
parent::boot();
|
||
|
|
||
|
//
|
||
|
}
|
||
|
}
|