Tampilan awal

This commit is contained in:
2026-06-05 18:34:30 +07:00
parent dfff1f18e9
commit f7479770e6
12 changed files with 824 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TempatIbadah extends Model
{
use HasFactory;
protected $table = 'tempat_ibadah';
protected $fillable = [
'nama_tempat',
'jenis_tempat_ibadah',
'kontak_person',
'radius_meter',
'lat',
'lng',
'alamat'
];
public function penerima_bantuan()
{
return $this->hasMany(PenerimaBantuan::class, 'id_tempat_ibadah');
}
}