定制 clarion-app/eloquent-multichain-bridge 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-30