Replicates models onto blockchain

dev-main 2022-12-18 08:31 UTC

This package is auto-updated.

Last update: 2023-09-18 10:24:45 UTC


Connect Eloquent ORM to MultiChain

  • Install
composer require metaverse-systems/eloquent-multichain-bridge
  • Make sure your migration includes: a UUID for the primary key, timestamps, and softDeletes
        Schema::create('messages', function (Blueprint $table) {
  • Add trait to your model
use MetaverseSystems\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.