
Folders in Laravel
Posted under » Laravel on 12 November 2026
The common folders you will see are
app
bootstrap
config
database
node_modules : optional and is excluded from Git by default
In a Laravel project, node_modules is the directory where Node.js and JavaScript packages (such as Vite, Tailwind CSS, Alpine.js, Vue, React, or Axios) are downloaded and stored. It acts as the frontend equivalent to Composer's vendor folder
docs : optional. Store your images or PDFs
public : The public folder serves as the exclusive entry point for web traffic and houses all assets directly accessible by a browser
resources
routes : The routes folder in a Laravel application holds all the files that define how incoming requests map to your application's logic.
Laravel automatically loads these files using the configuration in bootstrap/app.php.
You will see the following files. auth.php, console.php and web.php
storage
vendor
Routes web.php may contain
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('home');
});
Route::get('/about', function () {
return view('about');
});
You can find the blade template at resources/views/about.blade.php
@extends('layouts.app')
@section('content')
<main
class="relative font-sans selection:bg-adls-pink ....
@endsection
The layouts.app refers to resources/views/layouts/app.blade.php