Files
app-test-laravel/app/Models/MsKioskPaymentType.php
2025-12-02 13:37:26 +07:00

33 lines
778 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\HasOne;
class MsKioskPaymentType 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 refPaymentType(): HasOne
{
return $this->hasOne(RefPaymentType::class, 'foreign_key', 'local_key');
}
}