Hãy thử một cái gì đó như thế này ...
{{ Form::submit('Submit', array('class' => 'primary')), Form::reset('Clear', array('class' => 'secondary')) }}
Sau đó, trong css của bạn ...
form input[type="submit"], form input[type="reset"] {
-moz-border-radius: 5px;
-webkit-border-radius: 5px; border-collapse: separate !important;
border-radius: 5px;
}
form input.primary[type="submit"] {
clear: both;
margin: 20px 10px 0px 10px;
padding: 0px;
border: 0px;
width: 125px;
height: 31px;
background-color: #333333;
text-align: center;
line-height: 31px;
color: #FFFFFF;
font-size: 11px;
font-weight: bold;
}
form input.secondary[type="reset"] {
clear: both;
margin: 20px 10px 0px 10px;
padding: 0px;
border: 0px;
width: 125px;
height: 31px;
background-color: #555555;
text-align: center;
line-height: 31px;
color: #FFFFFF;
font-size: 11px;
font-weight: bold;
}
Tôi hy vọng điều này sẽ giúp ...
Nguồn
2013-07-28 10:23:11
http://stackoverflow.com/questions/17284985/how-to-add-classes-to-larvel-4-forms/17286473#17286473 –