Update CustomerResource.php
This commit is contained in:
parent
3c4733b730
commit
98e679268a
1 changed files with 5 additions and 0 deletions
|
@ -33,8 +33,12 @@ class CustomerResource extends Resource
|
|||
$schema = [];
|
||||
if ($getPhyreServers->count() > 0) {
|
||||
$schema[] = Forms\Components\Select::make('phyre_server_id')
|
||||
->label('Server')
|
||||
->options($phyreServers)
|
||||
->default(0)
|
||||
->disabled(function($record) {
|
||||
return $record->phyre_server_id > 0;
|
||||
})
|
||||
->columnSpanFull();
|
||||
}
|
||||
|
||||
|
@ -43,6 +47,7 @@ class CustomerResource extends Resource
|
|||
Forms\Components\TextInput::make('name')
|
||||
->prefixIcon('heroicon-s-user')
|
||||
->required()->columnSpanFull(),
|
||||
|
||||
Forms\Components\TextInput::make('username')
|
||||
->unique(Customer::class, 'username', ignoreRecord: true)
|
||||
->prefixIcon('heroicon-s-user')
|
||||
|
|
Loading…
Reference in a new issue