garygreen / pretty-routes

Pretty routes for Laravel
655 stars 77 forks source link

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

Open shafikhaan opened 5 years ago

shafikhaan commented 5 years ago

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 ?

andrey-helldar commented 4 years ago

PrettyRoutesController does not extend from Illuminate\Routing\Controller.

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

andrey-helldar commented 4 years ago

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