*/ protected $fillable = [ 'user_id', 'kecerdasan_id', 'presentase', 'catatan', ]; /** * Get the user that owns the diagnosa. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function user() { return $this->belongsTo(User::class, 'user_id', 'id'); } /** * Get the jurusan associated with the diagnosa. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function kecerdasan() { return $this->belongsTo(Kecerdasan::class, 'kecerdasan_id'); } }