We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d1ccc commit f86981bCopy full SHA for f86981b
app/Http/Controllers/DonationController.php
@@ -37,6 +37,14 @@ public function thankYou(string $uuid)
37
38
Notification::route('mail', $donation->email)
39
->notify(new UserDonationReceived($donation));
40
+
41
42
+ $organizationsUsers = $donation->load('organization')
43
+ ->organization->load('users')->users->filter(function ($user) {
44
+ return $user->hasVerifiedEmail();
45
+ });
46
47
+ \Notification::send($organizationsUsers, new DonationReceived());
48
49
return Inertia::render('Public/Donor/ThankYou');
50
}
0 commit comments