Hello Artisans, In the previous post we saw how we to send SMS notification using Twilio. If you are new to this post you can check my post on Twilio by the following the below link. Sending SMS notifications in Laravel using nexmo (note: the nexmo is now Vonage), firstly we have to install the laravel/vonage-notification-channel and guzzlehttp/guzzle packages: composer require laravel/vonage-notification-channel guzzlehttp/guzzle After installation you need to define VONAGE_KEY and VONAGE_SECRET environment variables in.env file to register your Vonage public and secret keys.

To send the notification, you can use the Notification facade's send method and pass it the notifiable instance and the notification class.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners