Explore the folder structure of a Laravel project
3 h Calm
Know exactly where everything lives in Laravel. Walk through the structure folder by folder and understand how a project is built.
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.
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.
Related playbooks
Take your first steps with Laravel
Dive into web development with one of the most popular PHP frameworks. Install Laravel and build your very first route.
Writing your first Pest test in Laravel
Better code with fewer bugs starts with tests. Write and run your very first Pest test in Laravel.
Learn API Authentication with Laravel Sanctum
Secure your APIs like a pro. Learn how to install Laravel Sanctum, manage tokens, and protect your routes, step by step.
Understanding 3D Printing Before You Start
Get a quick grasp of how 3D printing works: the techniques, the applications, the materials, and the costs to get started.
Build your own GPS tracker with a Raspberry Pi and Laravel
A fun tinkering project for anyone who loves tech and code: a GPS tracker built from a Raspberry Pi and Laravel.
Learn the basics of web development in seven days
Go from your first HTML tag to your own website in a week. HTML, CSS and JavaScript in manageable daily steps.
Understanding SEO as a beginner, this is how visibility works
Why does one site find you and another doesn't? Learn the basics of SEO and the principles it's built on.
by PlayTryBe team