Download the PHP package norbis/laravel-log-notification-channel without Composer
On this page you can find all versions of the php package norbis/laravel-log-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download norbis/laravel-log-notification-channel
More information about norbis/laravel-log-notification-channel
Files in norbis/laravel-log-notification-channel
Package laravel-log-notification-channel
Short Description Log Notification Channel for Laravel
License MIT
Homepage https://github.com/norbis/laravel-log-notification-channel.git
Informations about the package laravel-log-notification-channel
Log Notifications Channel for Laravel 7+
Компонент для отправки уведомлений в лог для Laravel 7+.
Contents
- Установка
- Настройка сервиса
- Использование
- Доступные методы для модели сообщения
- Изменения
- Тестирование
Установка
Установите библиотеку с помощью Composer
Сервис провайдер загрузится автоматически или вы можете его добавить вручную:
Настройка сервиса
Добавьте канал лога для уведомлений по-умолчанию в ваш config/services.php
:
Использование
Вы можете использовать канал в вашем via()
методе внутри уведомления:
Добавьте метод routeNotificationForLog()
в вашей модели получателя уведомлений, который будет возвращать
контакт или массив контактов.
Доступные методы для модели сообщения
channel()
: Устанавливает канал лога сообщения.
content()
: Устанавливает содержимое сообщения.
extra()
: Устанавливает дополнительные данные для сообщения.
Изменения
Смотрите Изменения для получения информации по изменениям.