Menu

Monitoring a Laravel app on shared hosting
📰

Monitoring a Laravel app on shared hosting

DEV Community: laravel·MisterDebug·13 days ago
#Mt0l5Y8Z
#devtolaravel#devto#dev#enter#exit
Reading 0:00
15s threshold

On a VPS you can install fail2ban, tail the system logs and plug in whatever monitoring you like. On shared hosting you get an FTP account, a cron panel and a database. If someone hammers your login form at 3am, nothing tells you.

The mrdebug/laravel-watchdog package plugs into what Laravel already provides: the Login , Failed and MessageSent events, the exception handler, and the notification system. Alerts are regular Laravel notifications sent through a watchdog-discord channel, so you can replace any of them with your own class the same way you would customize a mail notification. No agent to install, no third-party service to sign up for, just a Discord webhook URL.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.