Laravel Messages is a very simple demo app to show a Messages API integration with Laravel 7. It receives and responds to WhatsApp messages, sends Messages to a whitelisted number, and logs the incoming status events.
If you're new to Vonage, you can sign up for an account and get some free credit to get you started.
We've tried to keep things short and sweet!
composer install
(requires PHP 7.3+)..env.example
to .env
, add your credentials to the NEXMO_*
fields at the bottom.php artisan serve
.[url you copied earlier]/webhooks/inbound
[url you copied earlier]/webhooks/status
You're all set!
Visit [url of project]/messages
and enter the number of the whitelisted phone (in E163 format, e.g. 447770007777. You should get a WhatsApp message.
We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either: