Files
lelong/app/Models/CawanganNotis.php
ismailmasseran e29a5891c8 Bugfix/list clickup issue (#5)
Reviewed-on: #5
Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com>
Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
2026-10-19 13:30:36 +08:00

37 lines
698 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CawanganNotis extends Model
{
use HasFactory;
protected $table = 'cawangan_notis';
protected $fillable = [
'batchnotis',
'notis_id',
'caw_id',
'fasa',
'status',
];
// public function lelongBid()
// {
// return $this->hasMany(LelongBid::class, 'caw_id', 'caw_id');
// }
public function cawangan()
{
return $this->belongsTo(Cawangan::class, 'caw_id', 'id');
}
public function notis()
{
return $this->belongsTo(Notis::class, 'notis_id', 'id');
}
}