Laravel for Beginners – Learn to Build Full-Stack Web Apps

Loading video...

Explore Directory Structure

Getting Started With Laravel

Directory Structure

Explore all files and folders in root directory

This is the default folder and file structure in Laravel 11.

Untitled

Read more regarding what each folder do here.

This is how app folder looks like.

Untitled

Everything from the app folder is autoloaded. You can always create new folders inside app folder and put classes there and they will be autoloaded. For example you can create app/Enum folder and put all your PHP enums there.

Or, certain artisan commands will generate new folders inside app. For example:

php artisan make:job UserJob

This will create app/Jobs folder and put a new file inside.

Untitled

Discussion

Sign in to join the discussion.

No comments yet. Be the first to start the discussion!