Cleanup for settings table and moved some seed data into the migrations

This commit is contained in:
Nabeel Shahzad
2017-12-09 21:21:49 -06:00
parent b165cd28b6
commit d34e30666d
19 changed files with 323 additions and 204 deletions

View File

@@ -21,40 +21,38 @@ class Pirep extends Model
protected $dates = ['deleted_at'];
public $fillable
= [
'user_id',
'flight_id',
'flight_number',
'route_code',
'route_leg',
'airline_id',
'aircraft_id',
'flight_time',
'dpt_airport_id',
'arr_airport_id',
'fuel_used',
'source',
'level',
'route',
'notes',
'status',
'raw_data',
];
public $fillable = [
'user_id',
'flight_id',
'flight_number',
'route_code',
'route_leg',
'airline_id',
'aircraft_id',
'flight_time',
'dpt_airport_id',
'arr_airport_id',
'fuel_used',
'source',
'level',
'route',
'notes',
'status',
'raw_data',
];
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts
= [
'flight_time' => 'integer',
'level' => 'integer',
'fuel_used' => 'integer',
'source' => 'integer',
'status' => 'integer',
];
protected $casts = [
'flight_time' => 'integer',
'level' => 'integer',
'fuel_used' => 'integer',
'source' => 'integer',
'status' => 'integer',
];
/**
* Validation rules