added email notifications on expense approved/rejected (whatsapp tmr)
This commit is contained in:
@@ -11,9 +11,20 @@ class Cabang extends Model
|
||||
|
||||
protected $table = 'cabang';
|
||||
protected $fillable = [
|
||||
'head_id',
|
||||
'region_id',
|
||||
'cost_id',
|
||||
'code',
|
||||
'name',
|
||||
];
|
||||
|
||||
public function head()
|
||||
{
|
||||
return $this->belongsTo(Admin::class, 'head_id');
|
||||
}
|
||||
|
||||
public function region()
|
||||
{
|
||||
return $this->belongsTo(Region::class, 'region_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user