phpvms/app/Models/UserBid.php

30 lines
452 B
PHP
Raw Normal View History

2017-08-04 10:02:02 +08:00
<?php
namespace App\Models;
/**
* @package App\Models
*/
class UserBid extends BaseModel
2017-08-04 10:02:02 +08:00
{
public $table = 'user_bids';
2017-08-04 10:02:02 +08:00
public $fillable = [
'user_id',
'flight_id',
];
2017-08-04 10:02:02 +08:00
/**
* Relationships
*/
public function flight()
{
return $this->belongsTo('App\Models\Flight', 'flight_id');
}
public function user()
{
return $this->belongsTo('App\Models\User', 'user_id');
}
}