Laravel Database Backup Package
This package will take backup your mysql database automatically via cron job.
Installing laravel-backup
The recommended way to install laravel-backup package using composer
composer require codecheef/backup
If your Laravel project version is less than 5 then
config/app.php
Add the service provider to 'providers' => [
Codecheef\Backup\BackupServiceProvider::class,
],
To test this package create a 'database' directory inside your public folder.
Creating Directory
/public/database
Then run below command to test it
php artisan backup:run
Setup Cron
To run it via cron job do it inside your app/Console/Kernel.php
protected $commands = [
BackupCommand::class
];
and now call it via shceduller that when you want to run it, like daily weekly etc.