We've released a new package called https://spatie.be/docs/laravel-notification-log. True to its name, it will log when your Laravel app sends notifications.

By default, the package will write an entry in the notification_log_items table for each https://laravel.com/docs/10.x/notifications sent in your app.

use Spatie\NotificationLog\Models\NotificationLogItem; // returns all logged notifications NotificationLogItem::query()->orderByDesc('id')->get(); The model has a handy latestFor method that will return the single latest logged notification for a given notifiable.

The Laravel Notification Log package contains will log all notifications by your app, and offers handy methods to query to log.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners