Kane Cohen

View My GitHub Profile
Follow Me

WRITTEN ON JAN 16, 2015Home

Laravel 5.0 Application Structure

As most of the active Laravel followers know, new version (5.0) of this growing PHP framework is coming in the nearest future and even though it doesn't have any massive underlying shifts in its behavior, there's enough changes to warrant bump in the major version.

In this blog I'd like to go over default application structure and give a short comment on every directory and file - what each does and what should be stored where. I will not go over various reasons for why new Laravel version has such changes, best person to ask that would be author of the framework - Taylor Otwell. All I have to say right now is that new structure definitely has its advantages that promote better workflow for medium to large applications.

Keep in mind that at the time of the writing, L5 still wasn't released as beta or stable, so there might be some changes.

Root Directory

After you run `composer install` command you'll have another directory - vendor/ which will store all of the required libraries and Laravel framework itself.

App Directory

Now, let's look inside of the app directory - it is quite different from the Laravel 4.x that you might be familiar with.


And that is all about application structure.


Next blog will be describing often asked question of "where do I put that file?" and general application development workflow.