samedi 18 août 2018

Using custom config for Nexmo from $notifiable in Laravel notifications

I'm having a hard time sorting out how to make Nexmo use custom settings from $notifiable i.e. App\User while sending out notifications. Laravel by default expects the Nexmo config (API key, secret) to be set in services.php and Nexmo driver uses the config from there directly. Although updating the config in runtime helps setting the values for the first time (if not set in services.php) but the same config values are used for all events. Ideally the config values should be used directly from the notifiable.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire