Skip to content

Instantly share code, notes, and snippets.

@robbens
Last active January 6, 2017 18:00
Show Gist options
  • Save robbens/6ae9a0ea2281835730bde1bcfcf2440c to your computer and use it in GitHub Desktop.
Save robbens/6ae9a0ea2281835730bde1bcfcf2440c to your computer and use it in GitHub Desktop.
Bulma.io Login form for the Laravel Auth scaffold
@extends('layouts.app')
@section('content')
<section class="section">
<div class="container">
<div class="column is-half is-offset-one-quarter">
<form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
{{ csrf_field() }}
<p class="control has-icon">
<input id="email" type="email" class="input {{ $errors->has('email') ? ' is-danger' : '' }}"
name="email"
value="{{ old('email') }}" placeholder="Email" required autofocus>
<span class="icon is-small">
<i class="fa fa-envelope"></i>
</span>
@if ($errors->has('email'))
<span class="help {{ $errors->has('email') ? ' is-danger' : '' }}">
{{ $errors->first('email') }}
</span>
@endif
</p>
<p class="control has-icon">
<input class="input {{ $errors->has('password') ? ' is-danger' : '' }}" type="password"
placeholder="Password" name="password" required>
<span class="icon is-small">
<i class="fa fa-lock"></i>
</span>
@if ($errors->has('password'))
<span class="help {{ $errors->has('password') ? ' is-danger' : '' }}">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</p>
<p class="control">
<label class="checkbox">
<input type="checkbox" name="remember">
Remember me
</label>
</p>
<p class="control">
<button type="submit" class="button is-success">
Login
</button>
</p>
<a href="{{ url('/password/reset') }}">
Forgot Your Password?
</a>
</form>
</div>
</div>
</section>
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment