laravel-backup icon indicating copy to clipboard operation
laravel-backup copied to clipboard

BackupWasSuccessful event not firing in Laravel 9

Open AleJavierHY opened this issue 2 years ago • 1 comments

Following the documentation I am trying to listen to the BackupWasSuccessful event but it does not fire. I am using version 9 of Laravel. How could I solve this problem?

protected $listen = [
      'Spatie\Backup\Events\BackupWasSuccessful' => [
            'App\Listeners\BackupWasSuccessfulListener',
   ],
];

AleJavierHY avatar Jun 10 '22 17:06 AleJavierHY

How could I solve this problem?

Making a PR with the fix

PaolaRuby avatar Jun 13 '22 13:06 PaolaRuby

It seems like currently we only send events if notifications are set up. I'll fix this in the next major version.

freekmurze avatar Oct 01 '22 10:10 freekmurze