Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to give a max-length of text? #9

Open
guoxiangke opened this issue Feb 5, 2024 · 0 comments
Open

how to give a max-length of text? #9

guoxiangke opened this issue Feb 5, 2024 · 0 comments

Comments

@guoxiangke
Copy link

hi, thanks for this package.
it works fine.
but my text field too long.
before I use this code to add ... and hide.
Text::make(__('Program Description'), 'description')
->rules('required', 'max:255')->displayUsing(function($description) {
return Str::limit($description, 32);
})->onlyOnIndex(),

but now, how to achieve this? thanks.

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

No branches or pull requests

1 participant