PHP code example of coreproc / laravel-notification-channel-playsms

1. Go to this page and download the library: Download coreproc/laravel-notification-channel-playsms 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/ */

    

coreproc / laravel-notification-channel-playsms example snippets


use CoreProc\NotificationChannels\PlaySms\PlaySmsChannel;
use CoreProc\NotificationChannels\PlaySms\PlaySmsMessage;
use Illuminate\Notifications\Notification;

class AccountActivated extends Notification
{
    public function via($notifiable)
    {
        return [PlaySmsChannel::class];
    }

    public function toPlaySms($notifiable)
    {
        return (new PlaySmsMessage())->setMessage('Your account has been activated!');
    }
}

setMessage($message)