mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-26 18:30:38 +00:00
added SubscriptionWasCreatedNotification
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Support\Listeners;
|
||||
|
||||
use Domain\Subscriptions\Notifications\BillingAlertTriggeredNotification;
|
||||
use Domain\Subscriptions\Notifications\SubscriptionWasCreatedNotification;
|
||||
use Illuminate\Events\Dispatcher;
|
||||
use VueFileManager\Subscription\Support\Events\BillingAlertTriggeredEvent;
|
||||
use VueFileManager\Subscription\Support\Events\SubscriptionWasCreated;
|
||||
@@ -17,6 +18,8 @@ class SubscriptionEventSubscriber
|
||||
'max_storage_amount' => $event->subscription->fixedFeature('max_storage_amount'),
|
||||
'max_team_members' => $event->subscription->fixedFeature('max_team_members'),
|
||||
]);
|
||||
|
||||
$event->subscription->user->notify(new SubscriptionWasCreatedNotification($event->subscription));
|
||||
}
|
||||
|
||||
public function handleSubscriptionWasUpdated($event)
|
||||
|
||||
Reference in New Issue
Block a user