PHP code example of hsuan1117 / line-notify-channel
1. Go to this page and download the library: Download hsuan1117/line-notify-channel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hsuan1117 / line-notify-channel example snippets
public function via($notifiable)
{
return [LineNotifyChannel::class];
}
public function routeNotificationForLINENotify($notifiable)
{
return $notifiable->line_notify_token;
}
public function toLINENotify(object $notifiable): LINENotifyMessage
{
return new LINENotifyMessage('Hello World!');
}