<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class LaporanHarianHarga extends Model
{
use HasFactory;
protected $table = 'laporan_harian_hargas';
protected $fillable = [
'id_kecamatan',
'bulan',
'tipe_penjualan',
];
public function kecamatan()
{
return $this->belongsTo(Kecamatan::class, 'id_kecamatan', 'id');
}
public function produkDetails()
{
return $this->hasMany(ProdukDetail::class, 'id_laporan', 'id');
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]