39 lines
807 B
PHP
39 lines
807 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Traits\Blameable;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class CorporateServiceConfig extends Model
|
|
{
|
|
use HasFactory, SoftDeletes, Blameable;
|
|
|
|
protected $fillable = [
|
|
'corporate_service_id',
|
|
'name',
|
|
'value'
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'updated_at',
|
|
'deleted_at',
|
|
'created_by',
|
|
'updated_by',
|
|
'deleted_by',
|
|
];
|
|
|
|
public function corporateService()
|
|
{
|
|
return $this->belongsTo(CorporateService::class, 'corporate_service_id');
|
|
}
|
|
|
|
public function exclusions()
|
|
{
|
|
return $this->morphMany(Exclusion::class, 'exclusionable');
|
|
}
|
|
}
|