Update Kelompok Tani & APP AGERA

This commit is contained in:
2026-09-06 19:09:37 +07:00
parent d50c292cf7
commit a76b014056
31 changed files with 3658 additions and 123 deletions
@@ -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;
class BantuanKelompokTani extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'survey_bantuan_kelompok_tani';
protected $fillable = [
'uid',
'survey_kelompok_tani_id',
'nama_program',
'penyelenggara',
'bentuk_bantuan',
'tahun',
'created_by',
'updated_by',
'deleted_by',
];
public function kelompokTani(): BelongsTo
{
return $this->belongsTo(KelompokTani::class, 'survey_kelompok_tani_id');
}
}