nayjest/db-dump

Database Dump Tool for Laravel
714 1
Install
composer require nayjest/db-dump
Latest Version:v1.3.6
PHP:>=5.4.0
License:MIT
Last Updated:Nov 26, 2014
Links: GitHub  ·  Packagist
Maintainer: nayjest

Database Dump Tool for Laravel

Installation

Installation with composer

  • Step 1: Add git url to composer.json file in your project:
"repositories": [
    {
        "url": "git@github.com:Nayjest/db-dump.git",
        "type": "git"
    }
],
  • Step 2: Add dependency to "require" section
"require": {
    "nayjest/db-dump": "~1"
},
  • Step 3: run "composer update" command

Usage

Create dump:

php artisan db:dump make

Create dump with specific tags:

php artisan db:dump make --tags my_dump,some_other_tag

Create dump using scenario:

php artisan db:dump make --scenario scenario_name

Apply dump (interactive)

php artisan db:dump apply