Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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:
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.