1. Go to this page and download the library: Download revosystems/paloma 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 Revo\Paloma\PalomaChannel;
use Revo\Paloma\PalomaMessage;
public function via($notifiable)
{
return [PalomaChannel::class];
}
public function toPaloma($notifiable): PalomaMessage
{
return new PalomaMessage(string $message, string $service, ?string $from = null);
}
public function getFullPhoneAttribute(): string
{
return "34" . trim($this->phone);
}