Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Styling a submit button for a Form in Laravel 4

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.

like image 660
user1072337 Avatar asked Jul 10 '13 00:07

user1072337


1 Answers

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'])}}
like image 113
mogetutu Avatar answered Nov 05 '22 12:11

mogetutu