fix tests, finally. i hope. cleanup before laravel 5.5 update

This commit is contained in:
Nabeel Shahzad
2017-09-07 15:35:17 -05:00
parent ae381d9908
commit 1502e0193f
7 changed files with 352 additions and 253 deletions

View File

@@ -15,8 +15,11 @@ trait Uuids
$key = $model->getKeyName();
if (empty($model->{$key})) {
$hashids = new Hashids('', 8);
$id = $hashids->encode((int)microtime(true));
$hashids = new Hashids('', 10);
$mt = str_replace('.', '', microtime(true));
$id = $hashids->encode($mt);
$model->{$key} = $id;
}
});

View File

@@ -126,6 +126,8 @@ class PIREPService extends BaseService
$pirep->save();
$pirep->refresh();
$this->setPilotState($pirep);
return $pirep;
}