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() }}

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine