set/add timezone information for airports and users
This commit is contained in:
@@ -12,6 +12,7 @@ class Airport extends Model
|
||||
{
|
||||
public $table = 'airports';
|
||||
public $timestamps = false;
|
||||
public $incrementing = false;
|
||||
|
||||
public $fillable = [
|
||||
'id',
|
||||
@@ -20,11 +21,15 @@ class Airport extends Model
|
||||
'location',
|
||||
'lat',
|
||||
'lon',
|
||||
'timezone',
|
||||
'fuel_100ll_cost',
|
||||
'fuel_jeta_cost',
|
||||
'fuel_mogas_cost',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'string',
|
||||
];
|
||||
/**
|
||||
* Validation rules
|
||||
*
|
||||
|
||||
@@ -64,6 +64,7 @@ class User extends Authenticatable
|
||||
'home_airport_id',
|
||||
'curr_airport_id',
|
||||
'rank_id',
|
||||
'timezone',
|
||||
'active',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user