Skip to main content

Command Palette

Search for a command to run...

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

Skip the notifications and send alerts

Published
1 min read
G

I am a self-taught developer currently in Salt Lake City. Currently, work in Laravel but have experience in plain PHP, PERL, and CakePHP.

Entrepreneurial VP of tech and CTO with a strong grasp of both the business and engineering. PHP developer for 10 years with experience in CakePHP and Laravel

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: https://twitter.com/DigiGuyDev or in the comments below!

More from this blog

Laravel & PHP by Guy Warner

18 posts

Self taught programmer -> Freelancer -> Senior Developer -> CTO

Laravel, PHP and all that comes with it.