clarion-app/eloquent-multichain-bridge

Replicates models onto blockchain

Maintainers

Package info

github.com/clarion-app/eloquent-multichain-bridge

pkg:composer/clarion-app/eloquent-multichain-bridge

Statistics

Installs: 50

Dependents: 9

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-03-08 03:01 UTC

This package is auto-updated.

Last update: 2026-03-08 03:01:40 UTC


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.