apichef / laravel-notify-lk
NotifyLK Notification Channel for laravel.
v1.0.1
2021-05-03 13:12 UTC
Requires
- php: ^7.4 || ^8.0
- guzzlehttp/guzzle: ^7.0.1
- illuminate/support: ^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-11-29 06:10:44 UTC
README
NotifyLK Notification Channel for laravel.
Install
Via Composer
$ composer require apichef/laravel-notify-lk
Usage
namespace App\Notifications; use ApiChef\NotifyLK\Contact; use ApiChef\NotifyLK\NotifyLKChannel; use ApiChef\NotifyLK\NotifyLKMessage; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class MyNotification extends Notification { use Queueable; public function via($notifiable) { return [ NotifyLKChannel::class, ]; } public function toNotifyLK($notifiable): NotifyLKMessage { return (new NotifyLKMessage()) ->content('This is a test message.') ->contact(new Contact('John', 'Doe', 'john.doe@example.com', 'No 1, Colombo, Sri Lanka', 'a_group')); } }
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email milroy@outlook.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.