Update CustomerResource.php
This commit is contained in:
parent
59804f63ed
commit
5e4ebd82e4
1 changed files with 5 additions and 2 deletions
|
@ -30,11 +30,14 @@ class CustomerResource extends Resource
|
|||
->schema([
|
||||
|
||||
Forms\Components\TextInput::make('name')
|
||||
->required(),
|
||||
->required()->columnSpanFull(),
|
||||
Forms\Components\TextInput::make('email')
|
||||
->email()
|
||||
->unique('customers', 'email')
|
||||
->required(),
|
||||
->required()->columnSpanFull(),
|
||||
Forms\Components\TextInput::make('username')
|
||||
->disabled()
|
||||
->columnSpanFull(),
|
||||
Forms\Components\TextInput::make('phone'),
|
||||
Forms\Components\TextInput::make('address'),
|
||||
Forms\Components\TextInput::make('city'),
|
||||
|
|
Loading…
Reference in a new issue