Update namespace

This commit is contained in:
nullthoughts
2020-03-17 13:55:24 -04:00
parent 7b89add86e
commit 552bc8fba8
2 changed files with 8 additions and 8 deletions

View File

@@ -16,18 +16,18 @@
}, },
"autoload": { "autoload": {
"psr-4" : { "psr-4" : {
"distinctm\\LaravelDataSync\\": "src/" "nullthoughts\\LaravelDataSync\\": "src/"
} }
}, },
"autoload-dev": { "autoload-dev": {
"psr-4" : { "psr-4" : {
"distinctm\\LaravelDataSync\\Tests\\": "tests/" "nullthoughts\\LaravelDataSync\\Tests\\": "tests/"
} }
}, },
"extra": { "extra": {
"laravel": { "laravel": {
"providers": [ "providers": [
"distinctm\\LaravelDataSync\\DataSyncBaseServiceProvider" "nullthoughts\\LaravelDataSync\\DataSyncBaseServiceProvider"
] ]
} }
} }

View File

@@ -1,6 +1,6 @@
<p align="center"> <p align="center">
<a href="https://packagist.org/packages/distinctm/laravel-data-sync" target="_blank"><img src="https://poser.pugx.org/distinctm/laravel-data-sync/d/total.svg" alt="Total Downloads"></a> <a href="https://packagist.org/packages/nullthoughts/laravel-data-sync" target="_blank"><img src="https://poser.pugx.org/nullthoughts/laravel-data-sync/d/total.svg" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/distinctm/laravel-data-sync" target="_blank"><img src="https://poser.pugx.org/distinctm/laravel-data-sync/v/stable.svg" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/nullthoughts/laravel-data-sync" target="_blank"><img src="https://poser.pugx.org/nullthoughts/laravel-data-sync/v/stable.svg" alt="Latest Stable Version"></a>
<a href="https://travis-ci.com/nullthoughts/laravel-data-sync"><img src="https://api.travis-ci.com/nullthoughts/laravel-data-sync.svg?branch=master" alt="Travis CI Build Status: Master"></a> <a href="https://travis-ci.com/nullthoughts/laravel-data-sync"><img src="https://api.travis-ci.com/nullthoughts/laravel-data-sync.svg?branch=master" alt="Travis CI Build Status: Master"></a>
</p> </p>
@@ -11,7 +11,7 @@ Laravel utility to keep records synchronized between environments through source
## Installation ## Installation
You can install this package via composer: You can install this package via composer:
```bash ```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: 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 ``` json
{ {
"require": { "require": {
"distinctm/laravel-data-sync": "^1.0", "nullthoughts/laravel-data-sync": "^1.0",
} }
} }
``` ```
then run ` composer install ` then run ` composer install `
## Usage ## 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 - 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 - 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) - Run `php artisan data:sync` (or `php artisan data:sync --model={model}` with the model flag to specify a model)