Hey, when I do this I get an error and backup is failed.
'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'],
],
I get this error:
Exception message: There is no notification class that can handle event Spatie\Backup\Events\BackupWasSuccessful.
Exception message: There is no notification class that can handle event Spatie\Backup\Events\CleanupWasSuccessful.
I would prefer not to get an email on every successful backup.
Do not comment those lines out in the config. Use an empty array at the end instead.
By empty array do you mean [] or ['']? its not clear in the docs how to achieve this.
An empty array: [].
Most helpful comment
Do not comment those lines out in the config. Use an empty array at the end instead.