pretty-routes icon indicating copy to clipboard operation
pretty-routes copied to clipboard

Call to undefined method PrettyRoutes\PrettyRoutesController::getMiddleware()

Open shafikhaan opened this issue 5 years ago • 2 comments

I am using laravel 5.2, Installed the package,

Put the PrettyRoutes\ServiceProvider::class, above app server providers and visited /routes and its showing me

FatalThrowableError in ControllerDispatcher.php line 110:
Call to undefined method PrettyRoutes\PrettyRoutesController::getMiddleware()

Whats missing ?

shafikhaan avatar Apr 25 '19 00:04 shafikhaan

PrettyRoutesController does not extend from Illuminate\Routing\Controller.

https://github.com/laravel/framework/blob/5.2/src/Illuminate/Routing/Controller.php#L45

andrey-helldar avatar Oct 02 '20 11:10 andrey-helldar

Solved in my fork: https://github.com/andrey-helldar/pretty-routes/releases

andrey-helldar avatar Oct 02 '20 12:10 andrey-helldar