Files
exchange/app/SupplierBooking.php
T
Jack Goh d1ce576109 changed model from bookingsupplier to supplier booking
fix supplier booking controller
make payment method nullable for supplier booking
2018-06-27 12:01:49 +08:00

28 lines
528 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SupplierBooking 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');
}
}