📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Laravel Framework Directory Structure

Directory Structure

5 min read
Understand every folder in a Laravel project: controllers, models, views, routes, config, and storage.

Laravel Directory Structure

my-app/
├── app/
│   ├── Http/
│   │   ├── Controllers/    # Controller classes
│   │   └── Middleware/     # Middleware
│   ├── Models/             # Eloquent models
│   └── Providers/          # Service providers
├── bootstrap/              # App bootstrapping
├── config/                 # Config files
├── database/
│   ├── migrations/         # DB schema changes
│   ├── seeders/            # Test data
│   └── factories/          # Model factories
├── public/                 # Web root (index.php)
├── resources/
│   ├── views/              # Blade templates
│   └── js/ css/            # Frontend assets
├── routes/
│   ├── web.php             # Web routes
│   └── api.php             # API routes
├── storage/                # Logs, cache, uploads
├── tests/                  # PHPUnit tests
└── .env                    # Environment config