spatie/laravel-backup
Spatie Laravel Backup creates zip backups of your app files and database, storing them on any Laravel filesystem (even multiple). Includes health monitoring, notifications, and automatic cleanup of old backups. Run with php artisan backup:run.
These events are fired during the cleanup process.
Spatie\Backup\Events\CleanupWasSuccessful
This event is fired when old backups are successfully removed from a destination filesystem.
It has two public properties:
$diskName: a string containing the name of the destination disk.$backupName: a string containing the name of the backup.Spatie\Backup\Events\CleanupHasFailed
This event is fired when something goes wrong while cleaning up.
It has three public properties:
$exception: an object that extends PHP's Exception class. It is highly likely that $exception->getMessage() will return more information on what went wrong.$diskName: a nullable string containing the name of the destination disk. If this is null then something probably went wrong before even connecting to one of the backup destinations.$backupName: a nullable string containing the name of the backup.How can I help you explore Laravel packages today?