PHP code example of chiwex / nova-backup-tool
1. Go to this page and download the library: Download chiwex/nova-backup-tool library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chiwex / nova-backup-tool example snippets
// in app/Providers/NovaServiceProvider.php
// ...
public function tools()
{
return [
// ...
new \Spatie\BackupTool\BackupTool(),
];
}
return [
/*
* Enable or disable backup tool polling.
*/
'polling' => true,
/*
* Interval seconds between polling requests.
*/
'polling_interval' => 1,
];
bash
php artisan vendor:publish --provider="Spatie\BackupTool\BackupToolServiceProvider" --tag="config"