Files
exchange/app/Invoice.php
T
2020-09-03 12:39:53 +08:00

19 lines
400 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');
}
}