Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #565
    dan
    Participant

    Forms\Components\TextInput::make(‘password’)
    ->password()
    ->maxLength(255),

    #566

    You will have to hash the password like so:

    Forms\Components\TextInput::make(‘password’)
    ->password()
    ->dehydrateStateUsing(fn ($state) => Hash::make($state))
    ->dehydrated(fn ($state) => filled($state))
    ->required(fn (string $context): bool => $context === ‘create’)
    ->maxLength(255),

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.