Files
exchange/app/BookingSupplier.php
T
2018-06-26 18:17:38 +08:00

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