feat: add graduation archive and public document services
This commit is contained in:
@@ -145,6 +145,11 @@ class Student extends Model
|
||||
return $this->hasOne(StudentTransfer::class);
|
||||
}
|
||||
|
||||
public function graduationRecord(): HasOne
|
||||
{
|
||||
return $this->hasOne(StudentGraduation::class);
|
||||
}
|
||||
|
||||
public function achievements(): HasMany
|
||||
{
|
||||
return $this->hasMany(StudentAchievement::class)->latest('achievement_year')->latest('achievement_date');
|
||||
|
||||
Reference in New Issue
Block a user