ems-spot / laravel-melipayamak-sms
The melipayamak SMS integration for Laravel 5.
Installs: 73
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 1
Type:laravel-package
Requires
- php: ^7.1.3
- illuminate/support: 5.*
- melipayamak/laravel: 0.1.0
README
An unofficial integration of the melipayamak sms library for laravel 5.
Code Example
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'];
}
Installation
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
License
WTF