Files
exchange/app/BookingSupplier.php
T
Jack Goh b7f258f6a9 refactor BookingsupplierController
fix booking supplier model
updated fields for bookg supplier frontend
2018-06-27 10:30:01 +08:00

28 lines
528 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 booking(){
return $this->hasOne('App\Booking');
}
public function supplierBookingTtem()
{
return $this->hasMany('App\SupplierBookingItem');
}
}