PHP code example of antlerslabs / ziggy-db

1. Go to this page and download the library: Download antlerslabs/ziggy-db 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/ */

    

antlerslabs / ziggy-db example snippets


'tables' => [
    'only' => [],
    'skip' => [
        'cache',
        'cache_locks',
        'failed_jobs',
        'job_batches',
        'jobs',
        'sessions',
    ],
],
bash
php artisan vendor:publish --tag="ziggy-db-config"
bash
php artisan ziggy-db:verify
php artisan ziggy-db:verify --connection=mysql_readonly
bash
php artisan ziggy-db:doctor
bash
php artisan ziggy-db:pull
php artisan ziggy-db:pull --source=mysql_readonly --target=mysql
php artisan ziggy-db:pull --only=users,orders
php artisan ziggy-db:pull --skip=sessions,cache
php artisan ziggy-db:pull --dry-run
php artisan ziggy-db:pull --no-anonymize
php artisan ziggy-db:pull --force