monev sampai target

This commit is contained in:
2026-04-27 09:13:35 +07:00
parent 5e2430cb2b
commit f3d4ba5f76
19 changed files with 1939 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Models\Program;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use App\Models\Program\Framework;
use App\Models\Program\Aktivitas;
class Transformasi extends Model
{
use SoftDeletes;
protected $table = 'program_transformasi';
protected $fillable = [
"kode",
"nama",
"framework_id",
];
public function framework(): BelongsTo
{
return $this->belongsTo(Framework::class, 'framework_id', 'id');
}
public function aktivitas(): HasMany
{
return $this->hasMany(Aktivitas::class, 'transformasi_id', 'id');
}
}