accept/reject pireps in admin; cleanup and refactoring

This commit is contained in:
Nabeel Shahzad
2017-12-03 00:48:33 -06:00
parent 0272f7e729
commit 4c8fca39eb
17 changed files with 253 additions and 180 deletions

View File

@@ -29,9 +29,9 @@ class Rank extends Model
protected $casts = [
'name' => 'string',
'hours' => 'integer',
'auto_approve_acars' => 'boolean',
'auto_approve_manual' => 'boolean',
'auto_promote' => 'boolean',
'auto_approve_acars' => 'integer',
'auto_approve_manual' => 'integer',
'auto_promote' => 'integer',
];
/**

View File

@@ -81,7 +81,7 @@ class User extends Authenticatable
protected $casts
= [
'flights' => 'integer',
'flight_hours' => 'integer',
'flight_time' => 'integer',
'balance' => 'double',
'timezone' => 'integer',
];