<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Sekolah extends Model
{
    protected $table = 'sekolah';
    protected $fillable = ['nama_sekolah'];

    public function siswa()
    {
        return $this->hasMany(SiswaMagang::class, 'id_sekolah');
    }
}