NotifyLK Notification Channel for laravel.
Via Composer
$ composer require apichef/laravel-notify-lk
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', '[email protected]', 'No 1, Colombo, Sri Lanka', 'a_group'));
}
}
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.