Update workshop
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user