The package also contains handy methods that allow you to make decisions based on the notifications sent. Here's an example, where we use the wasAlreadySentTo method provided by the package in the shouldSend method of a notification.
// in a notificationpublicfunctionshouldSend($notifiable)
{
return ! $this
->wasSentTo($notifiable)
->inThePastMinutes(60);
}
You can fully customize which notifications get logged and how they get logged.