artarts36 / laravel-notifications-logger
Notifications Logger for Laravel
Installs: 4 448
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1 | ^8.0
- laravel/framework: 5.* || 6.*
Requires (Dev)
- doctrine/dbal: ^2.6
- orchestra/testbench: *
- phpstan/phpstan: ^1.4
- squizlabs/php_codesniffer: 3.*
README
This PHP package provides logging all notifications from your Laravel Application.
Installation:
-
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
Configuration
Services Configuration
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',
],
],