This PHP package provides logging all notifications from your Laravel Application.
-
Run:
composer require artarts36/laravel-notifications-logger
-
Add to providers:
\ArtARTs36\LaravelNotificationsLogger\Providers\NotificationsLoggerProvider
-
Run:
php artisan vendor:publish --tag=notifications_logger
-
Run
php artisan migrate
Path to package configuration: config/notifications_logger.php
.
Logger considers your application's services (System).
You can configure service recognition in section "system_mapping".
Key is regular expression for notification title. Value is service name.
Example:
'system_mapping' => [
'subject_system' => [
'/([a-z]*), you have to account for yesterday/i' => 'time-tracking-system',
],
],