PHP code example of ngmy / laravel-mysql-dumper

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

    

ngmy / laravel-mysql-dumper example snippets


Ngmy\LaravelMysqlDumper\MysqlDumperServiceProvider::class,

DB::unprepared(file_get_contents($dumpFile));
console
php artisan vendor:publish
console
php artisan vendor:publish --tag=ngmy-mysql-dumper
console
php artisan vendor:publish --provider="Ngmy\LaravelMysqlDumper\MysqlDumperServiceProvider"
console
php artisan mysql-dumper:dump
console
php artisan mysql-dumper:dump --setting=schema
console
php artisan mysql-dumper:dump --setting=data
console
php artisan mysql-dumper:dump --setting=your_setting
console
php artisan mysql-dumper:dump