You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,11 @@
2
2
3
3
Laravel utility to keep records synced between enviroments through source control
4
4
5
-
5
+
## Installation & Usage
6
+
- Via composer: `composer require distinctm/laravel-data-sync`
7
+
- Run `php artisan vendor:publish --provider="distinctm\LaravelDataSync\DataSyncBaseServiceProvider" --tag="data-sync-config"` to publish config file. Specify directory for sync data files (default is a new sync directory in the project root)
6
8
- Create a JSON file for each model, using the model name as the filename. Example: Product.json would update the Product model
7
9
- Use nested arrays in place of hardcoded IDs for relationships
8
-
- Run `php artisan vendor:publish --provider="distinctm\LaravelDataSync\DataSyncBaseServiceProvider" --tag="data-sync-config"` to publish config file. Specify directory for sync data files (default is a new sync directory in the project root)
9
10
- Run `php artisan data:sync` (or `php artisan data:sync --model={model}` with the model flag to specify a model)
0 commit comments