antonioribeiro / firewall

Firewall package for Laravel applications
BSD 3-Clause "New" or "Revised" License
1.4k stars 164 forks source link

ReflectionException when trying to use this library #48

Closed Archit256 closed 7 years ago

Archit256 commented 8 years ago

Whoops, looks like something went wrong. 1/1 ReflectionException in Container.php line 741: Class fw-allow-wl does not exist

in Container.php line 741
at ReflectionClass->__construct('fw-allow-wl') in Container.php line 741
at Container->build('fw-allow-wl', array()) in Container.php line 631
at Container->make('fw-allow-wl', array()) in Application.php line 674
at Application->make('fw-allow-wl') in Pipeline.php line 123
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 675
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in PrerenderMiddleware.php line 105
at PrerenderMiddleware->handle(object(Request), object(Closure))
at call_user_func_array(array(object(PrerenderMiddleware), 'handle'), array(object(Request), 
Archit256 commented 8 years ago

I tried installing this on laravel 5 and running the middleware but it doesn't seem to work.

AndyDunn commented 8 years ago

Sounds like you need to pull down the latest version of the code and make sure you follow the full install instructions including making changes to app/Http/Kernel.php.

I had a similar issue before I realised that the latest version of the code includes definitions for the middleware that you're missing.

antonioribeiro commented 7 years ago

Yes, you need o configure your middlewares.