23 lines
485 B
PHP
23 lines
485 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class RefPaymentType extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
"name",
|
|
"active"
|
|
];
|
|
|
|
public function MsHealthcareServicePaymentType(): BelongsTo
|
|
{
|
|
return $this->belongsTo(MsHealthcareServicePaymentType::class, 'foreign_key', 'other_key');
|
|
}
|
|
}
|