ems-spot/laravel-melipayamak-sms
Unofficial Laravel 5 notification channel for Melipayamak SMS. Configure credentials via .env, publish the package config, then send messages with SMS->text()->to()->sendText() and return EmsSpot\Melipayamak\SMS in via().
An unofficial integration of the melipayamak sms library for laravel 5.
public function toSms($notifiable)
{
return (new SMS)
->text(__('sms.activation_code', ['code' => $this->activation_code]))
->to($notifiable->phone)
->sendText();
}
public function via($notifiable)
{
return ['EmsSpot\Melipayamak\SMS'];
}
in .env:
MELIPAYAMAK_USERNAME=
MELIPAYAMAK_PASSWORD=
MELIPAYAMAK_FROM=
MELIPAYAMAK_DEBUG=false
MELIPAYAMAK_DEBUG_RECIPIENT=
in command line:
php artisan vendor:publish --provider="EmsSpot\Melipayamak\MelipayamakServiceProvider"
or if it doesnt work use
php artisan vendor:publish --force
WTF
How can I help you explore Laravel packages today?