Update Pendidikan Pelatihan

This commit is contained in:
2026-07-11 15:19:44 +07:00
parent df5bfeb67f
commit d33bc8a42b
7 changed files with 768 additions and 7 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Models\Pertanian;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use App\Models\Pertanian\Petani;
class SurveyPelatihan extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'survey_pelatihan';
protected $fillable = [
'uid',
'petani_id',
'jenis_pelatihan',
'penyelenggara',
'tahun_pelaksanaan',
'created_by',
'updated_by',
'deleted_by',
];
public function petani(): BelongsTo
{
return $this->belongsTo(Petani::class, 'petani_id');
}
}