mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
23 lines
501 B
PHP
23 lines
501 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Invoice extends Model
|
|
{
|
|
protected $fillable = ['invoice_url','amount','booking_id', 'buyer_company', 'address', 'contact_no', 'po_number'];
|
|
|
|
public function booking(){
|
|
return $this->belongsTo('App\Booking');
|
|
}
|
|
|
|
public function invoiceDetails() {
|
|
return $this->hasOne('App\InvoiceDetails');
|
|
}
|
|
|
|
public function invoiceStatuses() {
|
|
return $this->hasMany('App\InvoiceStatuses');
|
|
}
|
|
}
|