Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/bendahara2.aplikasipos.info/app/Models/
Upload File :
Current File : /home/aplikasiposinfo/www/bendahara2.aplikasipos.info/app/Models/CetakRincianBiaya.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CetakRincianBiaya extends Model
{
    use HasFactory;
    protected $guarded = [];

    public function staf() {
        return $this->belongsTo(User::class, 'staf_id', 'id');
    }

    public function bendahara() {
        return $this->belongsTo(User::class, 'bendahara_id', 'id');
    }

    public function kepala() {
        return $this->belongsTo(User::class, 'kepala_id', 'id');
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]