File manager - Edit - /home/linknsbh/rassudr.online/app/Models/Admin/Transaction.php
Back
<?php namespace App\Models\Admin; use App\Models\Membership; use App\Models\Vendor; use App\Models\Withdraw\WithdrawPaymentMethod; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Transaction extends Model { use HasFactory; protected $guarded = []; public function vendor() { return $this->belongsTo(Vendor::class, 'vendor_id', 'id'); } public function method() { return $this->belongsTo(WithdrawPaymentMethod::class, 'payment_method', 'id'); } public function membership() { return $this->belongsTo(Membership::class, 'transaction_id', 'id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 2.38 |
proxy
|
phpinfo
|
Settings