offline
anywhere

PlayBook📚

Explore the folder structure of a Laravel project

GroundLiving
Automatically translated · View original (Nederlands)

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

3u

duration

Ground

pace

Wie Laravel leert, komt al snel een projectmap tegen vol mappen en bestanden. Begrijp je waarom alles staat waar het staat, dan werk je een stuk sneller en met meer vertrouwen. De structuur is niet willekeurig: elke map heeft een duidelijke rol.

In dit playbook loop je systematisch door de belangrijkste mappen. Je verkent de app-map met de kern van je applicatie, de public-map met de index, en de resources-map met views, taalbestanden en assets. Je bekijkt de routes, database, config, storage en tests, en duikt tot slot in bestanden als .env, bootstrap en vendor. Aan het eind heb je een helder mentaal kaartje van elk Laravel-project.

by PlayTryBe team

Start with an overview of why the structure of Laravel is organized 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, and finally dive into files such as .env, bootstrap and vendor.

For anyone copying this

Do as we did

PaceGround
Duration3u