22 lines
391 B
PHP
22 lines
391 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PengajarLogbook extends Model
|
|
{
|
|
protected $table = "pengajar_logbook";
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public function Guru()
|
|
{
|
|
return $this->belongsTo(Guru::class, 'guru_id');
|
|
}
|
|
public function Logbook()
|
|
{
|
|
return $this->belongsTo(Logbooks::class, 'logbook_id');
|
|
}
|
|
}
|