34 lines
754 B
PHP
34 lines
754 B
PHP
<?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');
|
|
}
|
|
}
|