PHP code example of elimuswift / db-exporter

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

    

elimuswift / db-exporter example snippets


{
    "  "elimuswift/db-exporter": "*"
    },
}

 Elimuswift\DbExporter\DbExportHandlerServiceProvider::class

DbExporter::migrate();

DbExporter::migrate('otherDatabaseName');

DbExporter::seed();

DbExporter::seed('myOtherDB');

$this->call('nameOfYourSeedClass');

DbExporter::migrate()->seed();

DbExporter::migrateAndSeed();

DbExporter::ignore('tableToIgnore')->migrateAndSeed();
DbExporter::ignore('table1','table2','table3')->migrateAndSeed();

php composer.phar update

php artisan vendor:publish --provider="Elimuswift\DbExporter\DbExportHandlerServiceProvider"

php artisan db-exporter:migrations

php artisan db-exporter:migrations otherDatabaseName

php artisan db-exporter:migrations --ignore="table1,table2"

php artisan db-exporter:seeds

php artisan db-exporter:backup --migrations

php artisan db-exporter:backup --seeds

php artisan db-exporter:backup --migrations --seeds