mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
29 lines
541 B
PHP
29 lines
541 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BookingSupplier extends Model
|
|
{
|
|
// protected $guarded = [];
|
|
protected $fillable = ['rate','rebate','payment_amount','payment_method'];
|
|
public $timestamps = true;
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('app\User');
|
|
}
|
|
|
|
public function bookingSupplier()
|
|
{
|
|
return $this->hasOne('App\Booking');
|
|
}
|
|
|
|
public function supplierbookingitem()
|
|
{
|
|
return $this->hasMany('App\SupplierBookingItem');
|
|
}
|
|
|
|
}
|