captcha icon indicating copy to clipboard operation
captcha copied to clipboard

ReflectionException in Container.php line 734

Open TheAliAbbasi opened this issue 8 years ago • 1 comments

so I updated composer packages and I'm now on Laravel 5.2.41. and this exception shows up on capthcha_src() function. I was looking for the problem then I found out this:

// file: CaptchaServiceProvider.php#26
if (strpos($this->app->version(), 'Lumen') !== false) {
           $this->app->get('captcha[/{config}]', 'Mews\Captcha\LumenCaptchaController@getCaptcha');
        } else {
            if ((double) $this->app->version() >= 5.2) {
                $this->app['router']->get('captcha/{config?}', '\Mews\Captcha\CaptchaController@getCaptcha')->middleware('web');
            } else {
                $this->app['router']->get('captcha/{config?}', '\Mews\Captcha\CaptchaController@getCaptcha');
            }
        }

there's this ``middlewere('web') which is causing the problem.

TheAliAbbasi avatar Aug 02 '16 14:08 TheAliAbbasi

I found out the solution on this. I upgraded from 5.1 and forgot to make the middlewareGroups.

TheAliAbbasi avatar Aug 02 '16 15:08 TheAliAbbasi