'integer', 'amount' => 'decimal:2', // adjust precision if needed 'transaction_fee' => 'decimal:2', // adjust precision if needed // raw_data is often JSON; if it's JSON in DB, cast to array 'raw_data' => 'array', ]; /* Optional relationship */ public function payment() { return $this->belongsTo(Payment::class, 'payment_id'); } }