osoobe / laravel-dlvrit
Laravel package for Dlvr.it API
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
Requires
- illuminate/support: ^5.0|^6.0|^7.0|^8.0
- osoobe/dlvrit-api: *
Requires (Dev)
- orchestra/testbench: ^6.0
This package is auto-updated.
Last update: 2025-01-07 10:03:00 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");
}
}