The package leverages Laravel 5.3's native notifications to let you know that your backups are ok, or not. Out of the box it can send notifcations via mail and Slack (for Slack you'll need to require guzzlehttp/guzzle
in your project).
##Configuration
This is the portion of the configuration that will determine when and how notifications will be sent.
'notifications' => [
'notifications' => [
\Spatie\Backup\Notifications\Notifications\BackupHasFailed::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFound::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailed::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessful::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessful::class => ['mail'],
],
'notifiable' => \Spatie\Backup\Notifications\Notifiable::class,
'mail' => [
'to' => 'your@email.com',
],
'slack' => [
'webhook_url' => '',
],
],