Extending Laravel 5’s Application

Tutorials

January 26th, 2015

Matt Stauffer has a new write up showing how easy it is to extend the Laravel 5 Application object.

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.

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.