sk-hasil-belajar can only be printed once

This commit is contained in:
Gregorio Chiko Putra
2019-05-16 09:55:49 +07:00
parent 30a93871e5
commit f8d4d1df98
4 changed files with 71 additions and 23 deletions

View File

@@ -22,6 +22,11 @@ class Siswa extends Model
'lulus' => 'boolean',
];
public function accessLog()
{
return $this->hasMany('App\AccessLog');
}
public function hasilBelajar()
{
return $this->hasOne('App\HasilBelajar');