28 lines
597 B
PHP
28 lines
597 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class RefServiceType extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
"name",
|
|
"active"
|
|
];
|
|
|
|
/**
|
|
* Get the user that owns the ServiceType
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function msHealthcareService(): BelongsTo
|
|
{
|
|
return $this->belongsTo(MsHealthcareService::class, 'foreign_key', 'other_key');
|
|
}
|
|
}
|