PHP code example of hadeluca / db-exporter

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

    

hadeluca / db-exporter example snippets


'Hardel\Exporter\DBExporterServiceProvider::class'

$this->call('nameOfYourSeedClass');


return [
    'excel' => [
                'seed' => base_path().'/database/export/excel/seeds/',
                'migrations' => base_path().'/database/export/excel/migration/'
            ]
];
bash
php composer.phar update
bash
php artisan vendor:publish hadeluca/db-exporter
bash
php artisan dbexp:migration
bash
php artisan dbexp:migration databaseName
bash
php artisan dbexp:migration --ignore="table1,table2"
bash
php artisan dbexp:seed
bash
php artisan dbexp:seed --ignore="table1,table2"