Skip to content

osoobe/laravel-dlvrit

Repository files navigation

osoobe/laravel-dlvrit

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");
    }
}

About

Laravel package for Dlvr.it API

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages