PHP code example of spresnac / laravel-artisan-database-helper

1. Go to this page and download the library: Download spresnac/laravel-artisan-database-helper 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/ */

    

spresnac / laravel-artisan-database-helper example snippets


php artisan db:backup

php artisan db:backup <connection_name>

php artisan db:backup <connection_name> <path_to_binary>

php artisan db:backup mysql <path_to_binary>

php artisan db:backup -S

php artisan db:backup -O

php artisan db:backup -D

php artisan db:backup foobardb d:/www/mysql/bin -SO

php artisan db:restore

php artisan db:restore <backup_name> <connection> <path_to_mysql> <port>