kya
kya

Reputation: 1828

Style laravel form with bootstrap css

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

Answers (1)

Kiran LM
Kiran LM

Reputation: 1379

You may use this:

{{Form::text('first_name','',array('class'=>'text','id'=>'first_name','placeholder'=>'First Name','required'))}}

Upvotes: 1

Related Questions