By default the backup package can notify you by:
- writing something in the log
- by sending a mail
maknz/slack is installed, posting a message on Slack
If you want to be notified via another channel you can create your own sender. A valid sender is any object that implements the
public function setType($type);
public function setSubject($subject);
public function setMessage($message);
public function send();
If you choose to extend
Spatie\Backup\Notifications\BaseSender you'll only need to implement the
Your custom sender can be used by specifying it's full class name in one the
monitor.events-keys in the laravel-backup config file.
'whenBackupHasFailed' => ['log', 'mail', App\Backup\MyCustomSender::class],
When you've created a sender that could be beneficial to the community, consider contributing the code to this package.