PHP code example of rosemalejohn / laravel-message-whiz
1. Go to this page and download the library: Download rosemalejohn/laravel-message-whiz 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/ */
rosemalejohn / laravel-message-whiz example snippets
public function via($notifiable)
{
return ['database', 'broadcast', \Rosemalejohn\MessageWhiz\NotificationChannel::class]
}
public function toSms($notifiable): array
{
return [
'recipient' => $notifiable->phone_number,
'message_body' => 'John Doe sent a like'
];
}
bash
php artisan vendor:publish --provider="Rosemalejohn\MessageWhiz\MessageWhizServiceProvider"