I am new in Laravel and using laravel version 5.2.
I created a controller and request named as ArticlesController and CreateArticleRequest
Posting this as it might be useful for others,
As Praveen mentioned in 1st solution, in your Kernel.php
file(app/Http/Kernel.php
) move \Illuminate\View\Middleware\ShareErrorsFromSession::class
from $middlewareGroups
to protected $middleware
property, but the same will start throwing the error "Session store not set on request",
to resolve this move
\Illuminate\Session\Middleware\StartSession::class,
to $middleware property
as well.