39 lines
699 B
PHP
39 lines
699 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');
|
|
}
|
|
}
|
|
|
|
|