Update CustomerResource.php
This commit is contained in:
parent
f52c59317d
commit
95f1cae4e9
1 changed files with 4 additions and 0 deletions
|
@ -33,16 +33,20 @@ class CustomerResource extends Resource
|
|||
->prefixIcon('heroicon-s-user')
|
||||
->required()->columnSpanFull(),
|
||||
Forms\Components\TextInput::make('username')
|
||||
->unique(Customer::class, 'username', ignoreRecord: true)
|
||||
->prefixIcon('heroicon-s-user')
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('password')
|
||||
->password()
|
||||
->prefixIcon('heroicon-s-lock-closed')
|
||||
->required(),
|
||||
|
||||
Forms\Components\TextInput::make('email')
|
||||
->prefixIcon('heroicon-s-envelope')
|
||||
->unique(Customer::class, 'email', ignoreRecord: true)
|
||||
->email()
|
||||
->required(),
|
||||
|
||||
Forms\Components\TextInput::make('phone'),
|
||||
Forms\Components\TextInput::make('address'),
|
||||
Forms\Components\TextInput::make('city'),
|
||||
|
|
Loading…
Reference in a new issue