Reputation: 1828
I am learning laravel. I would like to add the following CSS atrributes:
<input type="text" class="text" id="first_name" name="first_name" placeholder="First Name" required="required" >
to the laravel form:
{{Form::text('first_name')}}
I googled, but I haven't been lucky.
Upvotes: 0
Views: 151
Reputation: 1379
You may use this:
{{Form::text('first_name','',array('class'=>'text','id'=>'first_name','placeholder'=>'First Name','required'))}}
Upvotes: 1