Update workshop

This commit is contained in:
2026-05-04 11:55:58 +07:00
parent dec76e8b1d
commit f040dcdc55
17 changed files with 1248 additions and 69 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace App\Models\Program;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Profile;
use App\Models\Program\SesiWorkshop;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class PesertaWorkshop extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'peserta_workshop';
protected $fillable = [
'sesi_workshop_id',
'profil_id',
'status',
'created_by',
'updated_by',
'deleted_by',
];
public function profil()
{
return $this->belongsTo(Profile::class, 'profil_id');
}
public function sesiWorkshop()
{
return $this->belongsTo(SesiWorkshop::class, 'sesi_workshop_id');
}
}