Skip to content

Instantly share code, notes, and snippets.

@mahamudul310
Created October 21, 2018 19:02
Show Gist options
  • Save mahamudul310/7b03287e7e907ab07511bc1fbd384ae9 to your computer and use it in GitHub Desktop.
Save mahamudul310/7b03287e7e907ab07511bc1fbd384ae9 to your computer and use it in GitHub Desktop.
LARAVEL Input Form
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please Sign In</h3>
</div>
<div class="panel-body">
{!! Form::open(['url'=>'/login','method'=>'POST'])!!}
<fieldset>
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
{{ Form::email('email',null,['class'=>'form-control','placeholder'=>'enter your email'])}}
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
{{ Form::password('password',['class'=>'form-control','placeholder'=>'enter your password'])}}
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<div class="checkbox">
<label>{{ Form::checkbox('name','rememberMe')}} Remember Me</label>
</div>
<div class="form-group">
{{ Form::submit('Login',['class'=>'btn btn-success btn-block','name'=>'btn'])}}
</div>
</fieldset>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment