Add support for external_id on servers, closes #975

This commit is contained in:
Dane Everitt
2018-02-24 11:57:12 -06:00
parent f655188c58
commit 633bba6d6e
11 changed files with 73 additions and 15 deletions

View File

@@ -211,6 +211,7 @@ class ServerCreationService
private function createModel(array $data): Server
{
return $this->repository->create([
'external_id' => array_get($data, 'external_id'),
'uuid' => Uuid::uuid4()->toString(),
'uuidShort' => str_random(8),
'node_id' => array_get($data, 'node_id'),