Looking to hire Laravel developers? Try LaraJobs

laravel-notifications-logger maintained by artarts36

Description
Notifications Logger for Laravel
Author
Last update
2022/11/23 12:23 (0.3.x-dev)
License
Links
Downloads
4 452

Comments
comments powered by Disqus

Laravel Notifications Logger

PHP Composer License: MIT

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',
    ],
],