Skip to content

Commit

Permalink
Larval 5.2 session fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MeWebStudio - Muharrem ERİN authored and MeWebStudio - Muharrem ERİN committed Jan 22, 2016
1 parent e11676b commit 3e7f068
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ for Laravel 5.1+
]
```

for Laravel 5.2+
Add `\Illuminate\Session\Middleware\StartSession::class` to `$middleware` in `Kernel.php`

## Configuration

To use your own settings, publish config.
Expand Down

1 comment on commit 3e7f068

@cloudop
Copy link

@cloudop cloudop commented on 3e7f068 May 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not right.
It will cause another bug , the validate faild error messages been empty.
Add this in Routes.php will work,use the web middleware,don't add StartSession in Kernel.php.
Route::get('captcha/{config?}', '\Mews\Captcha\CaptchaController@getCaptcha');

Please sign in to comment.