Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class InvoiceDetail extends Model |
||
8 | { |
||
9 | protected $table = 'trn_invoice_details'; |
||
10 | |||
11 | protected $fillable = [ |
||
12 | 'item_name', |
||
13 | 'plan_id', |
||
14 | 'item_description', |
||
15 | 'invoice_id', |
||
16 | 'item_amount', |
||
17 | 'created_by', |
||
18 | 'updated_by', |
||
19 | ]; |
||
20 | |||
21 | public function createdBy() |
||
24 | } |
||
25 | |||
26 | public function updatedBy() |
||
27 | { |
||
28 | return $this->belongsTo('App\User', 'updated_by'); |
||
29 | } |
||
30 | |||
31 | public function Invoice() |
||
32 | { |
||
33 | return $this->belongsTo('App\Invoice', 'invoice_id'); |
||
34 | } |
||
35 | |||
36 | public function Plan() |
||
39 | } |
||
40 | } |
||
41 |