Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Application handler functionality #4068
A generic solution for handling issues such as reported in #4062.
The names of the new methods are
An example test using this functionality would be:
referenced this pull request
Mar 20, 2017
You can change whatever you want via the Laravel application object, this is just a generic implementation to give users this ability.
One other example would be overriding bindings in the container, however, the Laravel module already has a few dedicated methods for this like
I could also have created a dedicated method such as
One other option is to implement this functionality as a hidden API method and not as public methods, so users have to access it via a helper. But personally I like the current implementation better.