Template
peserta-danuar
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\HasOne;
|
||||
|
||||
class MsKioskVisitType extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* Get the user associated with the MsKioskVisitType
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function msKiosk(): HasOne
|
||||
{
|
||||
return $this->hasOne(MsKiosk::class, 'foreign_key', 'local_key');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the user associated with the MsKioskVisitType
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function refVisitType(): HasOne
|
||||
{
|
||||
return $this->hasOne(RefVisitType::class, 'foreign_key', 'local_key');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user