In validation failed statement,
You need to use return Redirect::to('login')
instead of return Redirect::route('login')
.
In index.blade.php
, it should be like -
@foreach($errors->all() as $error)
<div class="errors">{{ $error }} </div>
@endforeach
instead of
@foreach($errors as $error)
<div class="errors">{{ $error }} </div>
@endforeach
Also here is my suggestion. if you are currently developing an application using laravel, it is the best to enable debug. Open laravel/app/config/app.php
and make sure 'debug' => 'true'
. It will help you see what is detailed error messages with stack traces.