@extends('layouts.login') @section('title') Login @stop @section('content')
@if ($errors->has()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif

Login

{{ Form::open(['id' => 'loginForm', 'role' => 'form', 'action' => 'LoginController@postIndex']) }}
{{ Form::label('username', 'Username') }} {{ Form::text('username', null, ['placeholder' => 'Username', 'class' => 'form-control']) }}
{{ Form::submit('Login', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@stop