phpvms/app/Models/UserBid.php
2018-01-08 09:22:12 -06:00

30 lines
440 B
PHP

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