lpj/app/Models/Branch.php

22 lines
464 B
PHP
Raw Normal View History

2024-08-12 04:23:51 +00:00
<?php
namespace Modules\Lpj\Models;
2024-08-12 04:23:51 +00:00
use Modules\Lpj\Database\Factories\BranchFactory;
2024-08-12 04:23:51 +00:00
class Branch extends Base
{
protected $table = 'branches';
protected $fillable = ['code', 'name', 'status', 'authorized_at', 'authorized_status', 'authorized_by'];
2024-08-13 04:54:42 +00:00
public function debitures()
{
return $this->hasMany(Debiture::class, 'branch_id', 'id');
2024-08-13 04:54:42 +00:00
}
public function kjpp()
{
return $this->belongsTo(KJPP::class);
}
}