Looking to hire Laravel developers? Try LaraJobs

laravel-websms-ru maintained by laravel-tool

Description
Laravel WebSMS.ru channel provider
Last update
2023/01/19 06:43 (dev-main)
License
Links
Downloads
7

Comments
comments powered by Disqus

Laravel WebSMS.ru Notification Channel

Installation

composer require laravel-tool/laravel-websms-ru

Configuration

  1.  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'),
     ];
    
  2. Add to notifiable model:
    public function routeNotificationForSms($notification): string
    {
        return $this->phone;
    }
    
  3. Add to notification channel "websms_ru":
     public function via($notifiable)
     {
         return ['websms_ru'];
     }