update
This commit is contained in:
parent
f7c869b255
commit
99d123a488
2 changed files with 11 additions and 2 deletions
|
@ -37,10 +37,18 @@ class CustomerResource extends Resource
|
||||||
->options($phyreServers)
|
->options($phyreServers)
|
||||||
->default(0)
|
->default(0)
|
||||||
->hidden(function($record) {
|
->hidden(function($record) {
|
||||||
|
if ($record) {
|
||||||
return $record->phyre_server_id == 0;
|
return $record->phyre_server_id == 0;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
->disabled(function($record) {
|
->disabled(function($record) {
|
||||||
|
if ($record) {
|
||||||
return $record->id > 0;
|
return $record->id > 0;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
->columnSpanFull();
|
->columnSpanFull();
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,7 @@ class PhyreServer extends Model
|
||||||
$findCustomer->external_id = $externalCustomer['id'];
|
$findCustomer->external_id = $externalCustomer['id'];
|
||||||
}
|
}
|
||||||
$findCustomer->name = $externalCustomer['name'];
|
$findCustomer->name = $externalCustomer['name'];
|
||||||
|
$findCustomer->username = $externalCustomer['username'];
|
||||||
$findCustomer->email = $externalCustomer['email'];
|
$findCustomer->email = $externalCustomer['email'];
|
||||||
$findCustomer->phone = $externalCustomer['phone'];
|
$findCustomer->phone = $externalCustomer['phone'];
|
||||||
$findCustomer->address = $externalCustomer['address'];
|
$findCustomer->address = $externalCustomer['address'];
|
||||||
|
|
Loading…
Reference in a new issue