mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
InvoiceStatuses Model
This commit is contained in:
@@ -15,4 +15,8 @@ class Invoice extends Model
|
||||
public function invoiceDetails() {
|
||||
return $this->hasOne('App\InvoiceDetails');
|
||||
}
|
||||
|
||||
public function invoiceStatuses() {
|
||||
return $this->hasMany('App\InvoiceStatuses');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InvoiceStatuses extends Model
|
||||
{
|
||||
protected $fillable = ['status','comment'];
|
||||
|
||||
public function invoice() {
|
||||
return $this->belongsTo('App/Invoice');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user