Update CustomerResource.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-04 15:24:39 +03:00
parent 59804f63ed
commit 5e4ebd82e4

View file

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