Build & Deploy / build (push) Successful in 18s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Users\Schemas;
|
|
|
|
use Filament\Forms\Components\DateTimePicker;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
use Functional\Users\Enums\Units;
|
|
|
|
class UserForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->required(),
|
|
TextInput::make('email')
|
|
->label('Email address')
|
|
->email()
|
|
->required(),
|
|
DateTimePicker::make('email_verified_at'),
|
|
TextInput::make('password')
|
|
->password()
|
|
->required(),
|
|
TextInput::make('locale')
|
|
->required()
|
|
->default('fr'),
|
|
Select::make('units')
|
|
->options(Units::class)
|
|
->default('metric')
|
|
->required(),
|
|
TextInput::make('timezone'),
|
|
TextInput::make('avatar_path'),
|
|
TextInput::make('oidc_sub'),
|
|
]);
|
|
}
|
|
}
|