This commit is contained in:
Bozhidar Slaveykov 2024-04-07 01:18:53 +03:00
parent f7c869b255
commit 99d123a488
2 changed files with 11 additions and 2 deletions

View file

@ -37,10 +37,18 @@ class CustomerResource extends Resource
->options($phyreServers)
->default(0)
->hidden(function($record) {
if ($record) {
return $record->phyre_server_id == 0;
} else {
return false;
}
})
->disabled(function($record) {
if ($record) {
return $record->id > 0;
} else {
return false;
}
})
->columnSpanFull();
}

View file

@ -68,6 +68,7 @@ class PhyreServer extends Model
$findCustomer->external_id = $externalCustomer['id'];
}
$findCustomer->name = $externalCustomer['name'];
$findCustomer->username = $externalCustomer['username'];
$findCustomer->email = $externalCustomer['email'];
$findCustomer->phone = $externalCustomer['phone'];
$findCustomer->address = $externalCustomer['address'];