osoobe/laravel-dlvrit

Laravel package for Dlvr.it API

1.0.0 2021-10-25 03:25 UTC

This package is auto-updated.

Last update: 2024-05-07 08:41:59 UTC


README

Laravel Package for dlvr.it API

Dependencies

Example

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Osoobe\Laravel\DlvrIt\DlvrItChannel;
use Osoobe\Laravel\DlvrIt\MessageRoute;

class DlvrItNotification extends Notification
{
    use Queueable;
   
    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return [DlvrItChannel::class];
    }
    
   
    /**
     * Send message dlvir
     *
     * @param mixed $notifiable
     * @return mixed
     */
    public function toDlvrIt($notifiable)
    {   
        return (new MessageRoute("Write your message here"))
            ->line("New line with message");
    }
}