Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Notification Log Laravel Package

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().

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Compliance & Auditing: Enables tracking of all notifications (emails, SMS, push, etc.) for regulatory compliance, GDPR, or internal audits without custom development.
  • Debugging & Observability: Reduces MTTR for notification failures by providing a centralized log of sent/not-sent notifications, payloads, and metadata (e.g., recipients, timestamps).
  • Feature Roadmap: Justifies prioritizing notification reliability features (e.g., retries, analytics) by providing foundational logging infrastructure.
  • Build vs. Buy: Avoids reinventing logging for notifications, saving dev time and reducing technical debt. MIT license ensures no vendor lock-in.
  • Use Cases:
    • Customer Support: Replay sent notifications to troubleshoot user-reported issues.
    • Analytics: Correlate notification delivery with user actions (e.g., "How many users opened the welcome email?").
    • Security: Detect anomalies (e.g., sudden spikes in notifications to invalid emails).

When to Consider This Package

  • Adopt if:

    • Your Laravel app sends high-volume or critical notifications (e.g., passwords, OTPs, financial alerts).
    • You lack a centralized notification audit trail and need one for compliance or debugging.
    • Your team prioritizes observability and wants to reduce manual logging efforts.
    • You’re using Laravel’s built-in notifications (Mail, SMS, etc.) and need minimal overhead.
  • Look elsewhere if:

    • You need real-time monitoring (this is a log, not a dashboard; pair with tools like Laravel Horizon or third-party analytics).
    • Your notifications are low-stakes (e.g., non-critical marketing emails).
    • You’re using a non-Laravel stack or custom notification systems.
    • You require advanced analytics (e.g., open rates, click tracking)—consider dedicated tools like Postmark or Mailgun.

How to Pitch It (Stakeholders)

For Executives: "This package lets us log every notification sent by our app—emails, SMS, push alerts—automatically, with no extra dev work. It’s like flight data recorders for our user communications. For $0 cost, we get compliance-ready audits, faster debugging of user issues, and the foundation to build analytics later. It’s a no-brainer for reliability and risk reduction."

For Engineering: "Spatie’s laravel-notification-log gives us a battle-tested way to track all notifications without writing custom logging. It’s lightweight, integrates seamlessly with Laravel’s notification system, and stores data in a structured table we can query. We can start using it today, and it’ll save us hours of debugging and auditing headaches. The MIT license means we own the data and can extend it if needed."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport