Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
TblStatusG3wMapping
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 budgetStatus
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Factories\HasFactory;
6use Illuminate\Database\Eloquent\Model;
7
8class TblStatusG3wMapping extends Model
9{
10    use HasFactory;
11
12    protected $table = 'tbl_status_g3w_mapping';
13
14    protected $primaryKey = 'id';
15
16    public $incrementing = false;
17
18    protected $fillable = [
19        'name_g3w',
20        'budget_status_id'
21    ];
22
23    public function budgetStatus()
24    {
25        return $this->belongsTo(TblBudgetStatus::class, 'budget_status_id', 'budget_status_id');
26    }
27}