offline
anywhere

playbook

Explore the folder structure of a Laravel project

GroundLiving
Automatically translated · View original (Nederlands)

Know exactly where everything lives in Laravel. Walk through the structure folder by folder and understand how a project is built.

3u

duration

Ground

pace

Anyone learning Laravel will quickly come across a project folder packed with directories and files. Once you understand why everything is where it is, you work a lot faster and with much more confidence. The structure is not arbitrary: every folder has a clear role.

In this playbook you systematically walk through the most important folders. You explore the app folder with the core of your application, the public folder with the index, and the resources folder with views, language files and assets. You look at the routes, database, config, storage and tests, and finally dive into files like .env, bootstrap and vendor. By the end you will have a clear mental map of every Laravel project.

by PlayTryBe team

Start with an overview of why the structure of Laravel is organised the way it is, then explore the app folder with the core of your application such as Http, Providers and Console.

Look at the public folder with the index of your application and the resources folder with views, language files and sass and js assets.

Understand the routes folder (web.php, api.php and console) and explore the database folder with migrations, seeds and factories.

Learn how configuration works in the config folder and why the storage folder is important for sessions, logs and compiled views.

Get acquainted with the tests folder and test-driven development, then finally dive into files like .env, bootstrap and vendor.

For anyone copying this

Do as we did

PaceGround
Duration3u