1 year ago

Laravel 5.5 extend or override package controller

Posted 1 year ago by amidknight

What is the convention in Laravel 5.5 for extending (or overriding) a controller external to the main app and without essentially rewriting the front-end for the package in the app?

I have a package with its own routes and controllers. I'm running into a couple of situations where overriding a method in one of the controllers would be an elegant way to solve a problem; however, the solutions I've come to on my own seem less than ideal. It's not something I seem to need that often because the packages do pretty well on their own.

Please sign in or create an account to participate in this conversation.