diff --git a/app/Database/migrations/2017_06_08_0000_create_users_table.php b/app/Database/migrations/2017_06_08_0000_create_users_table.php index 54783b7a..b7e96bdf 100755 --- a/app/Database/migrations/2017_06_08_0000_create_users_table.php +++ b/app/Database/migrations/2017_06_08_0000_create_users_table.php @@ -27,6 +27,7 @@ class CreateUsersTable extends Migration $table->string('last_pirep_id', 12)->nullable(); $table->unsignedBigInteger('flights')->default(0); $table->unsignedBigInteger('flight_time')->nullable()->default(0); + $table->unsignedBigInteger('transferred_time')->nullable()->default(0); $table->decimal('balance', 19)->nullable(); $table->string('timezone', 64)->nullable(); $table->unsignedTinyInteger('status')->nullable()->default(0); diff --git a/app/Models/User.php b/app/Models/User.php index 9ec25441..2723fc64 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -43,6 +43,7 @@ class User extends Authenticatable 'last_pirep_id', 'flights', 'flight_time', + 'transferred_time', 'balance', 'timezone', 'state', @@ -55,16 +56,18 @@ class User extends Authenticatable * The attributes that should be hidden for arrays. */ protected $hidden = [ + 'api_key', 'password', 'remember_token', ]; protected $casts = [ - 'flights' => 'integer', - 'flight_time' => 'integer', - 'balance' => 'double', - 'state' => 'integer', - 'status' => 'integer', + 'flights' => 'integer', + 'flight_time' => 'integer', + 'transferred_time' => 'integer', + 'balance' => 'double', + 'state' => 'integer', + 'status' => 'integer', ]; public static $rules = [