'date', 'ipk' => 'decimal:2', ]; public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id', 'id'); } // Akses nama langsung via $peserta->name public function getNameAttribute(): ?string { return $this->user?->name; } public function cuSelection() { return $this->hasMany( \App\Models\CuSelection::class, 'peserta_id', // FK di cu_selection 'user_id' // PK di peserta_profile ); } }