Your destination for complete Tech news

How to add Disabled attribute in Laravel Form Class

560 0
< 1 min read

When using the Laravel default Form class to render Forms in blade. You can add the [‘disabled’] array in the last of the form to make it disabled.

For Example:

Form::select('size', ['L' => 'Large', 'S' => 'Small'], 'S', ['disabled']);

Leave A Reply

Your email address will not be published.

five + six =

This site uses Akismet to reduce spam. Learn how your comment data is processed.