diff --git a/composer.json b/composer.json index 71d7824..71eeb78 100644 --- a/composer.json +++ b/composer.json @@ -16,18 +16,18 @@ }, "autoload": { "psr-4" : { - "distinctm\\LaravelDataSync\\": "src/" + "nullthoughts\\LaravelDataSync\\": "src/" } }, "autoload-dev": { "psr-4" : { - "distinctm\\LaravelDataSync\\Tests\\": "tests/" + "nullthoughts\\LaravelDataSync\\Tests\\": "tests/" } }, "extra": { "laravel": { "providers": [ - "distinctm\\LaravelDataSync\\DataSyncBaseServiceProvider" + "nullthoughts\\LaravelDataSync\\DataSyncBaseServiceProvider" ] } } diff --git a/readme.md b/readme.md index 5780933..7304b18 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@
@@ -11,7 +11,7 @@ Laravel utility to keep records synchronized between environments through source ## Installation You can install this package via composer: ```bash -composer require distinctm/laravel-data-sync +composer require nullthoughts/laravel-data-sync ``` Or add this line in your `composer.json`, inside of the `require` section: @@ -19,14 +19,14 @@ Or add this line in your `composer.json`, inside of the `require` section: ``` json { "require": { - "distinctm/laravel-data-sync": "^1.0", + "nullthoughts/laravel-data-sync": "^1.0", } } ``` then run ` composer install ` ## Usage -- 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) +- Run `php artisan vendor:publish --provider="nullthoughts\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) - Create a JSON file for each model, using the model name as the filename. Example: Product.json would update the Product model - Use nested arrays in place of hardcoded IDs for relationships - Run `php artisan data:sync` (or `php artisan data:sync --model={model}` with the model flag to specify a model)