PHP code example of spatie / nova-backup-tool
1. Go to this page and download the library: Download spatie/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/ */
spatie / 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"