use NotificationChannels\FacilitaMovel\FacilitaMovelChannel;
use Illuminate\Notifications\Notification;
class InvoicePaid extends Notification
{
public function via($notifiable)
{
return [FacilitaMovelChannel::class];
}
public function toFacilitamovel($notifiable)
{
return FacilitaMovel::create()
->to($notifiable->phone) // your user phone
->content('Your invoice has been paid');
}
}
...
/**
* Route notifications for the FacilitaMovel channel.
*
* @return int
*/
public function routeNotificationForFacilitamovel()
{
return $this->phone;
}
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.