code16/sharp
Code-driven CMS framework for Laravel (PHP 8.3+/Laravel 11+). Build admin/CMS sections with a clean UI and strong DX: CRUD with validation, search/sort/filter, bulk or custom commands, and authorization—no front-end code required, data-agnostic.
Class: Code16\Sharp\Form\Fields\SharpFormTextField
setInputTypeText()Used to set the type to regular text (the default).
setInputTypePassword()Used to set the type to password. An "eye button" is displayed to show / hide the input value.
setInputTypeEmail()Used to set the type to email.
setInputTypeTel()Used to set the type to tel.
setInputTypeUrl()Used to set the type to url.
setMaxLength(int $maxLength)Set a max character count.
setMaxLengthUnlimited()Unset the max character count.
setSanitizeHtml()Enable HTML sanitization (to prevent XSS attacks if this field data is used as raw HTML).
toFront: expect a string.fromFront: returns a string.How can I help you explore Laravel packages today?