feat(Membership): add notification for user and admin during registration
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m30s
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m30s
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Models\Package;
|
||||
use App\Notifications\MemberDeactivatedAdminNotification;
|
||||
use App\Notifications\MemberDeactivatedMemberNotification;
|
||||
use App\Notifications\MemberNewRequestAdminNotification;
|
||||
use App\Notifications\MemberNewRequestMemberNotification;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
|
||||
class MemberService
|
||||
@@ -55,6 +56,8 @@ class MemberService
|
||||
Notification::route('mail', config('app.admin_email'))
|
||||
->notify(new MemberNewRequestAdminNotification($member, $package, (float) $data['amount']));
|
||||
|
||||
$member->notify(new MemberNewRequestMemberNotification($member, $package));
|
||||
|
||||
event(new MemberRegistered($member));
|
||||
|
||||
return $member;
|
||||
|
||||
Reference in New Issue
Block a user