spatie/laravel-notification-log
Logs all notifications sent by your Laravel app, storing them as NotificationLogItems so you can query what was sent to a user, display notification history, and make sending decisions (e.g., avoid duplicates) via helpers like wasSentTo() and inThePastMinutes().
By default, the package will use the fully qualified class name of a notification to fill the notification_type column in the notification_log_items table.
You can customize this by adding a method logType to your notification and let it return the value that should be saved in the notification_type column.
// in a notification
public function logType(): string
{
return 'customType';
}
How can I help you explore Laravel packages today?