33 lines
717 B
PHP
33 lines
717 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
use App\Models\SubscriptionPlanPackage;
|
||
|
|
|
||
|
|
|
||
|
|
class SubscriptionPackageDescription extends Model
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
use SoftDeletes;
|
||
|
|
|
||
|
|
protected $dates = ['deleted_at'];
|
||
|
|
protected $table = 'subscription_package_descriptions';
|
||
|
|
protected $fillable = [
|
||
|
|
'plan_id',
|
||
|
|
'subscription_master_id',
|
||
|
|
'description',
|
||
|
|
'is_active'
|
||
|
|
];
|
||
|
|
|
||
|
|
|
||
|
|
public function subscription_plan_packages() {
|
||
|
|
|
||
|
|
return $this->hasOne(SubscriptionPackageDescription::class, 'plan_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|