LARAVEL FORM AND INPUT BOX WITH VALIDATION FORMAT
{{ Form::open(array('url'=>'action_route','method'=>'post')) }}
<div class="form-group {{$errors->has('first_name')?'has-error':''}}">
{!!Form::label('first_name','First Name : ')!!}
{!!Form::text('first_name',$info->first_name,array('class'=>'form-control'))!!}
{!!$errors->first('first_name','<span class="help-block">:message</span>')!!}
</div>
{{ Form::close() }}
<div class="form-group {{$errors->has('first_name')?'has-error':''}}">
{!!Form::label('first_name','First Name : ')!!}
{!!Form::text('first_name',$info->first_name,array('class'=>'form-control'))!!}
{!!$errors->first('first_name','<span class="help-block">:message</span>')!!}
</div>
{{ Form::close() }}
Comments
Post a Comment