Your IP : 216.73.216.91


Current Path : /var/www/html/LLCF-APP/app/Models/
Upload File :
Current File : /var/www/html/LLCF-APP/app/Models/VtcAttendence.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class VtcAttendence extends Model
{
    protected $table = 'vtc_attendence';

    public $timestamps = true;

    protected $fillable = [
        'vtc_student_id',
        'gr_no',
        'attendence',
        'date',
    ];

    /**
     * Relationship: Each attendance record belongs to one VTC student.
     */
    public function vtcStudent(): BelongsTo
    {
        return $this->belongsTo(VtcStudent::class, 'vtc_student_id');
    }
}