Laravel Tutorials / January 26, 2015

Extending Laravel 5’s Application

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.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.