2024-07-02 19:20:18 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Subscriptions extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
|
|
protected $table = 'subscriptions';
|
|
|
|
|
protected $guarded = [];
|
2024-07-11 16:30:46 +05:30
|
|
|
|
2024-07-08 20:11:31 +05:30
|
|
|
|
2024-07-05 19:46:27 +05:30
|
|
|
public function subscription()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(IamPrincipal::class, 'iam_principal_xid', 'id');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-07-05 19:48:08 +05:30
|
|
|
|
2024-07-08 20:11:31 +05:30
|
|
|
public function iamPrincipal()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(IamPrincipal::class, 'iam_principal_xid', 'id');
|
|
|
|
|
}
|
2024-07-11 15:11:05 +05:30
|
|
|
|
|
|
|
|
public function subscriptionProduct()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(SubscriptionProducts::class, 'subscription_product_xid', 'id');
|
|
|
|
|
}
|
|
|
|
|
}
|