Init(Core): Change repo
This commit is contained in:
30
app/Models/PaymentTransaction.php
Normal file
30
app/Models/PaymentTransaction.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentTransaction extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'subscribe_plan_id',
|
||||
'transaction_id',
|
||||
'reference_id',
|
||||
'amount',
|
||||
'status',
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function subscribePlan()
|
||||
{
|
||||
return $this->belongsTo(SubscribePlan::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user