<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class LedgerTransaction extends Model {  public $timestamps=false; protected $fillable=['public_id','reference_type','reference_id','idempotency_key','posted_at','reversed_by_id']; protected function casts():array{return ['posted_at'=>'datetime'];} public function entries(){return $this->hasMany(LedgerEntry::class);} }
