关于laravel5.2 Session Cache 不能使用问题
laravel5.2框架下载下来中间件默认是没有开启Session的
所以在 App\Http\Kernel 里面的$middleware 加入:
\Illuminate\Cookie\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
ps:框架不要在精简了,在精简不知道以后还要出什么叉子,真是的,搞了一晚上头都大了
所以在 App\Http\Kernel 里面的$middleware 加入:
\Illuminate\Cookie\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
ps:框架不要在精简了,在精简不知道以后还要出什么叉子,真是的,搞了一晚上头都大了