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

title: Getting started weight: 1

By default, the package will write an entry in the notification_log_items table for each notification sent in your app. You can also have fine-grained control over which notifications should be logged.

the notification_log_items table has these columns:

  • notification_type: the class name of the sent notification

  • notifiable_id: the key value of the notifiable the notification was sent to

  • notifiable_type: the (morph) class name of the notifiable the notification was sent to

  • channel: the name of the channel the notification was sent to

  • fingerprint: a value that you can customize to identify the exact content of the notification

  • extra: an array of values you can freely add to the log

  • anonymous_notifiable_properties: the configuration of the notifiable when sending an on demand notification

  • confirmed_at: will contain the time the NotificationSent event was fired

    How the package fills all these properties can be fully customized.

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
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
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests