ekosistem dan framework
This commit is contained in:
@@ -20,6 +20,8 @@ class Framework extends Model
|
||||
"nama",
|
||||
"tahun",
|
||||
"program_id",
|
||||
"created_by",
|
||||
"updated_by",
|
||||
];
|
||||
|
||||
public function program(): BelongsTo
|
||||
@@ -29,6 +31,8 @@ class Framework extends Model
|
||||
|
||||
public function transformasi(): HasMany
|
||||
{
|
||||
return $this->hasMany(Transformasi::class, 'framework_id', 'id');
|
||||
return $this->hasMany(Transformasi::class, 'framework_id', 'id')
|
||||
->orderBy('kode', 'asc')
|
||||
->orderBy('id', 'asc');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user