1. Go to this page and download the library: Download sideso/hablame 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/ */
use Illuminate\Notifications\Notification;
use NotificationChannels\hablame\HablameMessage;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return ["hablame"];
}
public function tohablame($notifiable)
{
return (new HablameMessage)->content("Your account was approved!");
}
}
public function routeNotificationForhablame()
{
return $this->phone;
}