laravel / vonage-notification-channel

Vonage Notification Channel for Laravel.
https://laravel.com/docs/notifications#sms-notifications
MIT License
744 stars 51 forks source link

dx: bind VonageSmsChannel to container #63

Closed ankurk91 closed 2 years ago

ankurk91 commented 2 years ago

Hi @driesvints ,

This change allow us to specify the channel class in Notification via() method.

use Illuminate\Notifications\VonageSmsChannel;

public function via() {
   return [VonageSmsChannel::class]
}

The old syntax will still work

public function via() {
   return ['vonage']
}

This helps us to CTRL+Click on class name and jump to actual class