Files
lpj/app/Models/JenisLaporan.php

28 lines
583 B
PHP

<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\JenisLaporanFactory;
class JenisLaporan extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
// Define the table if not using default table naming
protected $table = 'jenis_laporan';
protected $fillable = ['code', 'name'];
public function penawaran()
{
return $this->hasMany(PenawaranTender::class, 'jenis_laporan_id', 'id');
}
}