artarts36/laravel-notifications-logger

Notifications Logger for Laravel

0.2.2 2022-02-03 03:35 UTC

This package is auto-updated.

Last update: 2024-10-24 00:44:13 UTC


README

PHP Composer License: MIT Total Downloads

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