Logo Beartropy Alert System

Alert System

Database Reference
The package relies on several tables to manage configuration and logs.

Schema

  • alert_types: Defines categories of alerts (e.g., System, Security).
  • alert_channels: Defines available channels (e.g., mail, telegram).
  • alert_recipients: Maps recipients to types and channels.
  • alert_logs: Stores a record of every alert sent.

Alert Logs Table

Column Description
id Primary key
type Alert type name
channel Channel name (mail/telegram)
address Recipient address
status success or failure
error_message Error details if failure

Using the Model

You can use the model directly for custom dashboards:

1use Beartropy\AlertSystem\Models\AlertLog;
2 
3// Retrieve the 10 most recent logs
4$recent = AlertLog::latest()->take(10)->get();