PHP code example of fotobank / backup-migrations
1. Go to this page and download the library: Download fotobank/backup-migrations 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/ */
fotobank / backup-migrations example snippets
artisan vendor:publish --tag="backup-migrations"
artisan migrate
artisan db:seed
artisan migrate:restore
\\
'backup' => [
'driver' => 'local',
'root' => storage_path('mysql_dump'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
\\