PHP code example of lexuses / mysql-dump

1. Go to this page and download the library: Download lexuses/mysql-dump 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/ */

    

lexuses / mysql-dump example snippets


'disks' => [
    'database' => [
        'driver' => 'local',
        'root' => database_path(),
    ],
],

    'mysqldump' => 'docker exec laradock_mysql_1 /usr/bin/mysqldump'

protected function schedule(Schedule $schedule)
{
    $schedule->command('mysql-dump:auto')->hourly();
}

php artisan vendor:publish
config/filesystems.php
config/mysql-dump.php
Console/Kernel.php

php artisan mysql-dump:export

php artisan mysql-dump:list

php artisan mysql-dump:truncate

php artisan mysql-dump:drop