clarion-app/eloquent-multichain-bridge
Composer 安装命令:
composer require clarion-app/eloquent-multichain-bridge
包简介
Replicates models onto blockchain
README 文档
README
Connect Eloquent ORM to MultiChain
- Install
composer require clarion-app/eloquent-multichain-bridge
- Make sure your migration includes: a UUID for the primary key, timestamps, and softDeletes
Schema::create('messages', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->timestamps();
$table->softDeletes();
$table->string("from");
$table->string("to");
$table->string("body");
});
- Add trait to your model
use ClarionApp\EloquentMultiChainBridge\EloquentMultiChainBridge;
class Message extends Model
{
use HasFactory, EloquentMultiChainBridge;
}
Now when a Message is created, updated, or deleted, a copy will be replicated on the blockchain.
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 9
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-30