Rename UserFlight to UserBid to match functionality

This commit is contained in:
Nabeel Shahzad
2017-12-12 11:49:35 -06:00
parent cc873f1a29
commit de582f617c
19 changed files with 67 additions and 111 deletions

31
app/Models/UserBid.php Normal file
View File

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