Add some stats info for airlines and the stats table #108

This commit is contained in:
Nabeel Shahzad
2018-01-03 12:58:38 -06:00
parent a1696d3007
commit fce6c987fd
3 changed files with 69 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ class Airline extends BaseModel
'name',
'logo',
'country',
'total_flights',
'total_time',
'active',
];
@@ -25,7 +27,9 @@ class Airline extends BaseModel
* @var array
*/
protected $casts = [
'active' => 'boolean',
'total_flights' => 'int',
'total_time' => 'int',
'active' => 'boolean',
];
/**