<?php

namespace App\Models;

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

class Certificate extends Model
{
    use HasFactory;

    public function student()
    {
        return $this->belongsTo(User::class,'student_id');
    }
    public function room()
    {
        return $this->belongsTo(ClassRoom::class,'room_id');
    }
}
