Skip to content

Make fields "maskable" #4550

Discussion options

You must be logged in to vote

I managed to get it fixed for my situation by using the displayUsing() chainable method.

It looks like this in my case.

Text::make('Password')
      ->rules('required')
      ->displayUsing(fn (): string => ' ')
      ->copyable(),

Unfortunately though, this callback that you need to pass to get to a value must NOT be empty. So in my case I had to insert one space.

You could make the callback return anything you like though in your case.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@niels-bosman
Comment options

Comment options

You must be logged in to vote
2 replies
@niels-bosman
Comment options

Answer selected by niels-bosman
@ThisIsMyFavouriteJar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants