laravel-notify-admin maintained by proclame
Description
An easy helper to notify the admin or webmaster about general events using laravel notification system
Author
Last update
2021/10/05 09:21
(dev-main)
License
Downloads
4
Notify Admin Helper for Laravel
An easy helper to notify the admin or webmaster about general events using Laravel's notification system.
Every so often an app can use a little monitoring, and often this is not to a Model (User) that is required int the app to exist. This helper allows you to define main Notification “routes”, where a notification can be sent.
Installation
You can install the package via composer:
composer require proclame/laravel-notify-admin
You can (optionally) publish the config file with:
php artisan vendor:publish --provider="Proclame\LaravelNotifyAdmin\NotifyAdminServiceProvider"
This is the contents of the published config file: You can add options for extra notification channels
return [
'mail' => env('NOTIFY_ADMIN_MAIL'),
'telegram' => env('NOTIFY_ADMIN_TELEGRAM'),
];
Usage
notify_admin(new InvoicePaid($invoice));
Testing
@todo
composer test
License
The MIT License (MIT). Please see License File for more information.