Skip to content

Commit

Permalink
expand README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LBannenberg committed Jan 7, 2024
1 parent d991035 commit 89b8ca0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ Homestead.yaml
Homestead.json
/.vagrant
.phpunit.result.cache

.idea
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# laravel-mysqldump
A laravel package with artisan commands to dump and import mysql databases or tables

## Purpose

* Easily dump whole databases or specific tables, with `artisan mysql:export`
* Easily import, with `artisan mysql:import`
* Strip content from tables, for example, strip the customer data but keep the product catalog.


## Credits

This package makes heavy use of [spatie/db-dumper](https://github.com/spatie/db-dumper). The original inspiration is based on [magerun2](https://github.com/netz98/n98-magerun2) and [mage-db-sync](https://github.com/jellesiderius/mage-db-sync).

## Setup

Install with:
```bash
composer require corrivate/laravel-mysqldump
```

## Configuration
In your `config/database.php` you can add configuration for stripping tables:

![](docs/config.png)


Binary file added docs/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 89b8ca0

Please sign in to comment.