Rewrite add/remove bids code w additional tests

This commit is contained in:
Nabeel Shahzad
2018-07-24 14:50:50 -05:00
parent e680f33326
commit 0ce86e9e44
7 changed files with 92 additions and 78 deletions

View File

@@ -16,6 +16,10 @@ class Bid extends Model
'flight_id',
];
protected $casts = [
'user_id' => 'integer',
];
/**
* Relationships
*/

View File

@@ -17,7 +17,8 @@ use PhpUnitsOfMeasure\Exception\NonStringUnitName;
* @property integer airline_id
* @property mixed flight_number
* @property mixed route_code
* @property int route_leg
* @property int route_leg
* @property bool has_bid
* @property Collection field_values
* @property Collection fares
* @property Collection subfleets

View File

@@ -10,18 +10,19 @@ use Illuminate\Notifications\Notifiable;
use Laratrust\Traits\LaratrustUserTrait;
/**
* @property integer $id
* @property string $name
* @property string $email
* @property string $password
* @property string $api_key
* @property integer id
* @property string name
* @property string email
* @property string password
* @property string api_key
* @property mixed ident
* @property string curr_airport_id
* @property string home_airport_id
* @property Flight[] $flights
* @property string $flight_time
* @property string $remember_token
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property Flight[] flights
* @property string flight_time
* @property string remember_token
* @property \Carbon\Carbon created_at
* @property \Carbon\Carbon updated_at
* @property Rank rank
* @property Journal journal
* @property string pilot_id