composer require laravel-tool/laravel-websms-ru
-
return [ 'username' => env('WEBSMS_RU_USERNAME'), 'password' => env('WEBSMS_RU_PASSWORD'), 'test_mode' => env('WEBSMS_RU_TEST_MODE', false), 'default_sender' => env('WEBSMS_RU_DEFAULT_SENDER'), ];
- Add to notifiable model:
public function routeNotificationForSms($notification): string { return $this->phone; }
- Add to notification channel "websms_ru":
public function via($notifiable) { return ['websms_ru']; }