PHP code example of pentangle / pentangle-laravel-backup-config
1. Go to this page and download the library: Download pentangle/pentangle-laravel-backup-config 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/ */
pentangle / pentangle-laravel-backup-config example snippets
'pentangle-s3' => [
'driver' => 's3',
'key' => env('PENTANGLE_AWS_ACCESS_KEY_ID'),
'secret' => env('PENTANGLE_AWS_SECRET_ACCESS_KEY'),
'region' => env('PENTANGLE_AWS_DEFAULT_REGION'),
'bucket' => env('PENTANGLE_AWS_BUCKET'),
'url' => env('PENTANGLE_AWS_URL'),
'endpoint' => env('PENTANGLE_AWS_ENDPOINT'),
'root' => str_replace(['http://', 'https://'], '', env('APP_URL', 'example.com')),
],
\Pentangle\PentangleLaravelBackupConfig\PentangleLaravelBackupServiceProvider::class,
php artisan vendor:publish --provider="Pentangle\PentangleLaravelBackupConfig\PentangleLaravelBackupServiceProvider"
'dump' => [
'dump_binary_path' => env('APP_ENV') === 'local' ? '/usr/local/opt/mysql-client/bin' : '/usr/bin',
],