One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
niqs_api
/
app
/
Models
/
Edit File:
Payment.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Concerns\HasUuids; use Illuminate\Database\Eloquent\Relations\BelongsTo; class Payment extends Model { use HasUuids; public $incrementing = false; protected $keyType = 'string'; protected $fillable = [ 'user_id', 'charge_price_id', 'invoice_id', 'year', 'amount', 'currency', 'status', 'paid_at', 'gateway', 'reference', 'gateway_reference', 'meta', ]; protected $casts = [ 'meta' => 'array', 'paid_at' => 'datetime', ]; /* ======================= * Relationships * ======================= */ public function user(): BelongsTo { return $this->belongsTo(User::class); } public function chargePrice(): BelongsTo { return $this->belongsTo(ChargePrice::class); } public function invoice() { return $this->belongsTo(Invoice::class); } public function ledgerTransaction() { return $this->hasOne(LedgerTransaction::class); } }
Simpan