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 7ad11a6 commit 036a814Copy full SHA for 036a814
1 file changed
app/Notifications/FursuitApprovedNotification.php
@@ -18,6 +18,10 @@ public function __construct(public Fursuit $fursuit)
18
19
public function via($notifiable): array
20
{
21
+ // Do not send notification if badge was created in a previous year
22
+ if ($this->badge && $this->badge->created_at && $this->badge->created_at->year < now()->year) {
23
+ return [];
24
+ }
25
return ['mail'];
26
}
27
0 commit comments