mirror of
https://github.com/rekywhyd/WebGIS_PengentasanKemiskinan.git
synced 2026-07-11 03:43:09 +00:00
Tampilan awal
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PenerimaBantuan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'penerima_bantuan';
|
||||
|
||||
protected $fillable = [
|
||||
'id_tempat_ibadah',
|
||||
'nik_kepala_keluarga',
|
||||
'nomor_kk',
|
||||
'nama_kepala_keluarga',
|
||||
'jumlah_tanggungan',
|
||||
'foto_kondisi_rumah',
|
||||
'lat',
|
||||
'lng',
|
||||
'alamat'
|
||||
];
|
||||
|
||||
public function tempat_ibadah()
|
||||
{
|
||||
return $this->belongsTo(TempatIbadah::class, 'id_tempat_ibadah');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user