Support the ongoing development of Laravel.io →
Views Blade Forms
Last updated 2 years ago.
0

If you look @ the documentation you'll see that the second parameter is the label.

Last updated 2 years ago.
0

CaporalDead said:

If you look @ the documentation you'll see that the second parameter is the label.

Thanks for replying. I looked at the documentation very closely. The second parameter is not the label, it's the default value of the form element being created.

Last updated 2 years ago.
0
{{ Form::text('first_name', null, ['class' => 'someclass']) }}
Last updated 2 years ago.
0

shekarsiri said:

{{ Form::text('first_name', null, ['class' => 'someclass']) }}

That was very helpful. Thank you for sharing the solution with us shekarsiri I wish the Laravel docs were more comprehensive. Seems to be missing chunks of info esp in the api documentation.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

twopiers twopiers Joined 7 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.