Update CustomerResource.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-05 17:19:57 +03:00
parent f52c59317d
commit 95f1cae4e9

View file

@ -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'),