Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work in Laravel 9 #1

Closed
farhadhp opened this issue Feb 18, 2023 · 2 comments
Closed

Does not work in Laravel 9 #1

farhadhp opened this issue Feb 18, 2023 · 2 comments

Comments

@farhadhp
Copy link

Hi,
I have installed this package. However, when I execute the command "backup:run", the backup file is not sent to Telegram. The size of the backup file is 5 MB and the output of the "backup:run" command is as follows.

Starting backup...
Dumping database f14panel...
Determining files to backup...
Zipping 6317 files and directories...
Created zip containing 6317 files and directories. Size is 5.1 MB
Copying zip to disk named local...
Successfully copied zip to disk named local.
Sending notification failed
Backup completed!
@bangnokia
Copy link
Owner

hi @farhadhp , the default notification with spatie/laravel-backup is the email channel. If you don't configure email credentials, it will fail when sending notifications and didn't fire back up events. So you can ignore this by publishing the backup.php config file:

php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"

and change the setting backup.mail.to to an empty string.

 'mail' => [
            'to' => '',

            'from' => [
                'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
                'name' => env('MAIL_FROM_NAME', 'Example'),
            ],
        ],

@farhadhp
Copy link
Author

farhadhp commented Mar 2, 2023

Thankyou 🙏🏻

@farhadhp farhadhp closed this as completed Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants