PHP code example of velostazione / laravel-besms
1. Go to this page and download the library: Download velostazione/laravel-besms 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/ */
velostazione / laravel-besms example snippets
use Illuminate\Notifications\Notification;
use \Velostazione\Laravel\BeSMSChannel;
class YourNotification extends Notification
{
public function via($notifiable): array
{
return [BeSMSChannel::class];
}
public function toBeSMS($notifiable): BeSMSMessage
{
$message = new BeSMSMessage();
$message->content("Hello {$notifiable->name}!");
$message->sender("Me");
return $message;
}
}