WeSearch

How I Built a Laravel Package to Send Error Alerts to Telegram, Slack & Discord

·3 min read · 0 reactions · 0 comments · 1 view
#laravel#php#web development#open source#software package#Abdullah Alhumsi#laravel-error-notifier#Telegram#Slack#Discord#GitHub#Packagist
How I Built a Laravel Package to Send Error Alerts to Telegram, Slack & Discord
⚡ TL;DR · AI summary

Abdullah Alhumsi developed a Laravel package called laravel-error-notifier to automatically send error alerts to Telegram, Slack, and Discord when exceptions occur in production. The package is designed to be simple to install, with auto-discovery and configurable alert routing based on severity. It provides actionable, formatted alerts with suggested fixes, aiming to help developers respond quickly to issues.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3907687) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Abdullah Alhumsi Posted on May 1 How I Built a Laravel Package to Send Error Alerts to Telegram, Slack & Discord #laravel #php #opensource #webdev Every Laravel app breaks in production. The question is: do you find out before your users do? I got tired of checking logs manually and built a package that sends instant, actionable error alerts to Telegram, Slack, and Discord the moment something breaks. Here's how I built it and what I learned.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)