Laravel-backup: How can I cancel some notifications?

Created on 25 Jan 2018  路  3Comments  路  Source: spatie/laravel-backup

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.

Most helpful comment

Do not comment those lines out in the config. Use an empty array at the end instead.

All 3 comments

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: [].

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andaril picture andaril  路  3Comments

sherwinmartin picture sherwinmartin  路  5Comments

holymp2006 picture holymp2006  路  4Comments

rylxes picture rylxes  路  5Comments

eelcol picture eelcol  路  7Comments