PHP code example of antennaio / laravel-codeception-dbdump

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

    

antennaio / laravel-codeception-dbdump example snippets


// config/app.php
'provider' => [
    ...
    Antennaio\Codeception\DbDumpServiceProvider::class,
    ...
];

php artisan codeception:dbdump connection

php artisan codeception:dbdump connection --dump=tests/_data/test.sql

exec('php artisan codeception:dbdump connection');