可能是你laravel5.2的,这个包有问题,请找到 Mews\Captcha\CaptchaServiceProvider的boot() 方法,在 $this->app['router']->get('captcha/{config?}', '\Mews\Captcha\CaptchaController@getCaptcha') 后面加 ->middleware('web') 或者在某个位置继承此类然后重写该方法。推荐后面一种
可能是你laravel5.2的,这个包有问题,请找到
Mews\Captcha\CaptchaServiceProvider
的boot()
方法,在$this->app['router']->get('captcha/{config?}', '\Mews\Captcha\CaptchaController@getCaptcha')
后面加->middleware('web')
或者在某个位置继承此类然后重写该方法。推荐后面一种