I am trying to style a submit button for a form in Laravel 4. However, when I try the following, I get the same old boring default button:
{{Form::submit('Submit', null, array(
'type' => 'button',
'class' => 'btn btn-large btn-primary openbutton',
));}}
Is there a special way to style this type of button in a form context? Thank you.
Try removing 'null' before the options array
{{Form::submit('Submit', ['class' => 'btn btn-large btn-primary openbutton'])}}
If you are just looking for a normal html element try
{{Form::button('Open Image', ['class' => 'btn btn-large btn-primary openbutton'])}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With