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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners