How to send quick Google Chat (Gmail) alerts in Laravel

Skip the notifications and send alerts

·

1 min read

After Freek released a little package to send quick alerts to Slack, I knew instantly I wanted that for our main app but for Google Chat.

I released GoogleChatAlert that, like the main package, allows for multiple rooms to send an alert. It also cuts down on the complexity of setting up Laravel notifications.

GoogleChatAlert::message("Invoice {$invoice->number} is now 80 days past due");

For critical alerts this package allows you to @all members of the room:

GoogleChatAlert::message("New support ticket. <users/all>");

Big thanks to Spatie team!

Read more on the reasoning for the original package.

Thanks, for reading, please let me know if you found this helpful or have questions over on Twitter: twitter.com/DigiGuyDev or in the comments below!