Update CustomerResource.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-07 01:13:04 +03:00
parent 881537c9c6
commit f7c869b255

View file

@ -36,8 +36,11 @@ class CustomerResource extends Resource
->label('Server')
->options($phyreServers)
->default(0)
->hidden(function($record) {
return $record->phyre_server_id == 0;
})
->disabled(function($record) {
return $record->phyre_server_id > 0;
return $record->id > 0;
})
->columnSpanFull();
}