fix tests, finally. i hope. cleanup before laravel 5.5 update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -126,6 +126,8 @@ class PIREPService extends BaseService
|
||||
$pirep->save();
|
||||
$pirep->refresh();
|
||||
|
||||
$this->setPilotState($pirep);
|
||||
|
||||
return $pirep;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user