ventrec/laravel-entity-sync-endpoint
Composer 安装命令:
composer require ventrec/laravel-entity-sync-endpoint
包简介
Endpoint that handles syncing of entities
README 文档
README
Handles incoming sync requests for the laravel entity sync package.
Introduction
This is the client package of the laravel entity sync package. The laravel entity sync package syncs entities to the endpoints that this package creates. This package will then handle the data and create, update or delete the entity.
The structure of your tables should be the same on both the master database and the client database.
Installation
composer require ventrec/laravel-entity-sync-endpoint- Add
Ventrec\LaravelEntitySyncClient\LaravelEntitySyncClientProvider::classto providers in app.php - Publish the config file
php artisan vendor:publish --provider="Ventrec\LaravelEntitySyncClient\LaravelEntitySyncClientProvider" - Update the config file
- Add the entities that you expect to receive requests for. This should be the same entities that you have entered in the master config.
- Enter an api token that should be used to verify the requests. This should be the same token that was used in the master config.
- (Optional) Enter a prefix for the api-endpoint. If no prefix is entered, all requests will be sent to
/entity-sync
Usage
All models that is used must have protected $guarded = [].
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-15