PHP code example of tematech / avstelecomsms
1. Go to this page and download the library: Download tematech/avstelecomsms 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/ */
tematech / avstelecomsms example snippets
php
/**
* In notifiable
* */
public function routeNotificationForAvstelecom()
{
return $this->phone;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['avstelecom'];
}
public function toAvstelecom($notifiable){
return [
'message' => '' // message sms
];
}