Extending Laravel 5’s Application

This has come up recently because some folks are debating on whether or not Laravel 5 should make it easier to change the default folder paths–e.g. changing storage’s location, or changing public to be public_html. There are, at the time of this writing, no easy ways to do that other than extending Application, and that has some folks worried.

So, let’s do it. Let’s take a Laravel 5 application, extend its Application, and change its storage path to be /OMGStorage.