Building Web Apps with Laravel
Build database-backed web apps with Laravel 13: routing, Blade, Eloquent, validation, auth, APIs, queues, testing, security and deployment.
69 lessons: 42 free with Pro answers and 27 with a free core.
Examples run with PHP 8.5.11, Composer 2.10.3 and Laravel 13.34.0.
Who it is for
PHP developers building web applications. Assumes the php track's essentials (types, functions, classes, namespaces and Composer, exceptions, PDO and HTTP basics); basic HTML and SQL help from the first module, and JavaScript only for the Inertia lessons.
What you will be able to do
- Install Laravel 13, read how a project is laid out and configured, and drive it with Artisan
- Route requests through middleware to controllers, and render pages with Blade, components and Vite
- Model data with migrations and Eloquent, and load relationships without N+1 queries
- Keep data correct under concurrency with transactions, locks and migrations that avoid downtime
- Validate every input with rules and form requests, and accept file uploads safely
- Authenticate users and authorize every action with gates and policies
- Build JSON APIs with resources and token authentication, and call outside services safely
- Move slow work into events, queues and scheduled tasks, and push live updates to pages
- Test, secure, cache, deploy and upgrade Laravel apps with checks that measure instead of guessing
- Add languages, search, an admin panel and payments, and structure a large app into modules
Before this track
Revise and practise
- Practice: every exercise and quiz (2 exercises, 69 quizzes)
- Building Web Apps with Laravel flashcards
Modules and lessons
What the labels mean
- Free lesson, Pro answers
- the whole lesson is free; the model answers to its interview questions open with a pass
- Free core, Pro depth
- the core of the lesson is free; its in-depth parts open with a pass
- Pro
- opens with a Pro, Premium or Ultimate pass
Minutes are reading time: “5 of 15 min free” means 5 minutes of the lesson are free.
What a pass opens in this track
71 in-depth parts and 175 interview answers. The same pass opens every other track and every Pro tool.
- Module 1
Start here: Laravel 13 in 2026
What Laravel gives a PHP developer, which version to use, how to install it, and how a project is laid out and configured.
- What Laravel is and when to use it Free lesson, Pro answers: 15 minutes
- Install PHP, Composer and Laravel 13 Free lesson, Pro answers: 15 minutes
- Project structure, configuration and Artisan Free lesson, Pro answers: 10 minutes
- Module 2
Build your first Laravel feature
A guided build of Pathshala's notice board: a route, a controller, a Blade page, a table, a form and tests, so every later module has something real to extend.
- Your first page: route, controller and view Free lesson, Pro answers: 10 minutes
- Your first CRUD feature with Eloquent Free lesson, Pro answers: 15 minutes
- Module 3
Requests, routing and middleware
How a request travels through Laravel, and the routing, middleware, controller, request and response APIs every feature uses.
- How Laravel handles a request Free lesson, Pro answers: 15 minutes
- Routing, route parameters and URL generation Free lesson, Pro answers: 15 minutes
- Middleware and rate limiting Free lesson, Pro answers: 10 minutes
- Controllers and route model binding Free lesson, Pro answers: 15 minutes
- Requests, input and uploaded files Free lesson, Pro answers: 10 minutes
- Responses, redirects, sessions and cookies Free lesson, Pro answers: 15 minutes
- Module 4
Blade, components and the front end
Server-rendered pages with Blade and components, assets with Vite and Tailwind, and the two modern front-end paths: Livewire, and Inertia with React, Vue or Svelte.
- Blade templates and safe output Free lesson, Pro answers: 10 minutes
- Blade components, layouts and page metadata Free lesson, Pro answers: 15 minutes
- Assets with Vite, Tailwind CSS and a CSP nonce Free lesson, Pro answers: 15 minutes
- Interactive pages with Livewire 4 Free lesson, Pro answers: 15 minutes
- Single-page apps with Inertia 3 Free lesson, Pro answers: 20 minutes
- Module 5
Databases and Eloquent
SQL through the query builder, schema changes with migrations, and Eloquent models, relationships, casts, scopes and pagination, with query counts measured rather than guessed.
- Databases and the query builder Free lesson, Pro answers: 15 minutes
- Migrations and schema design Free lesson, Pro answers: 15 minutes
- Eloquent models, mass assignment, soft deletes Free lesson, Pro answers: 10 minutes
- Factories, seeders and realistic test data Free lesson, Pro answers: 10 minutes
- Eloquent relationships, pivots and morph maps Free lesson, Pro answers: 15 minutes
- Eager loading and the N+1 query problem Free lesson, Pro answers: 10 minutes
- Casts, accessors, enums and value objects Free lesson, Pro answers: 10 minutes
- Scopes, Eloquent collections and pagination Free lesson, Pro answers: 10 minutes
- Module 6
Advanced database work
Correctness under concurrency, large data sets, and schema changes that don't take the site down.
- Transactions, locks and race conditions Free lesson, Pro answers: 15 minutes
- Large data sets and query performance Free lesson, Pro answers: 10 minutes
- Zero-downtime migrations and database specifics Free lesson, Pro answers: 20 minutes
- Module 7
Validation, form requests and file uploads
Validating everything that enters the app, reusable form requests and rules, and uploads that can't hurt you.
- Validation rules and error messages Free lesson, Pro answers: 15 minutes
- Form requests, custom rules and Precognition Free lesson, Pro answers: 15 minutes
- File uploads, storage disks and images Free lesson, Pro answers: 15 minutes
- Module 8
Authentication and authorization
Starter kits and what they generate, authentication underneath them, passwords, verification and two-factor, and authorization with gates and policies.
- Starter kits, Fortify and social login Free lesson, Pro answers: 10 minutes
- How Laravel authentication works Free core, Pro depth: 5 of 15 minutes free
- Passwords, verification and two-factor Free core, Pro depth: 4 of 15 minutes free
- Authorization: gates and policies Free core, Pro depth: 5 of 15 minutes free
- Module 9
APIs
JSON APIs with resources and JSON:API, token and SPA authentication, OAuth2 when you need it, and outbound HTTP and webhooks.
- Building JSON APIs with Laravel Free lesson, Pro answers: 10 minutes
- API resources, pagination and JSON:API Free core, Pro depth: 5 of 15 minutes free
- API auth with Sanctum and Passport Free core, Pro depth: 6 of 15 minutes free
- HTTP client, outbound calls and webhooks Free core, Pro depth: 5 of 15 minutes free
- Module 10
Events, queues, scheduling and real time
Everything that shouldn't happen inside the request: events, queued jobs, batches, scheduled tasks, mail and notifications, and live updates.
- Events, listeners and model observers Free lesson, Pro answers: 15 minutes
- Queues and jobs: work after the response Free core, Pro depth: 5 of 15 minutes free
- Batches, chains, workers and Horizon Free core, Pro depth: 5 of 15 minutes free
- Task scheduling, Artisan commands and processes Free core, Pro depth: 6 of 20 minutes free
- Mail and notifications Free core, Pro depth: 5 of 15 minutes free
- Broadcasting and Reverb: real-time updates Free core, Pro depth: 5 of 15 minutes free
- Module 11
Inside the framework
The service container, providers, facades and contracts, plus the collection, string, number and date helpers used everywhere, and error handling and logging.
- The service container and dependency injection Free lesson, Pro answers: 15 minutes
- Service providers, facades and contracts Free core, Pro depth: 3 of 10 minutes free
- Collections, strings, numbers and dates Free core, Pro depth: 4 of 10 minutes free
- Errors, logging and context Free core, Pro depth: 6 of 15 minutes free
- Module 12
Testing Laravel applications
Pest and PHPUnit as Laravel sets them up, HTTP and database tests, fakes and time travel, browser tests, static analysis and CI.
- Testing with Pest and PHPUnit Free lesson, Pro answers: 15 minutes
- HTTP tests and database tests Free core, Pro depth: 6 of 20 minutes free
- Fakes, mocks and time travel Free core, Pro depth: 6 of 20 minutes free
- Browser tests, static analysis and CI Free core, Pro depth: 5 of 20 minutes free
- Module 13
Security in depth
What Laravel protects by default, what you must add, the vulnerabilities that still happen in Laravel apps, and secrets.
- Laravel's security model and hardening Free lesson, Pro answers: 10 minutes
- Common Laravel vulnerabilities: a lab Free core, Pro depth: 5 of 15 minutes free
- Encryption, secrets and key rotation Free core, Pro depth: 5 of 15 minutes free
- Module 14
Caching and performance
Caching done safely, measuring before optimising, and long-running servers with Octane.
- Caching data, responses and the framework Free lesson, Pro answers: 20 minutes
- Profiling and optimizing a Laravel app Free core, Pro depth: 5 of 15 minutes free
- Octane, FrankenPHP and concurrency Free core, Pro depth: 5 of 15 minutes free
- Module 15
Deployment and operations
Getting Laravel onto a server or into a container safely, releasing without downtime, and keeping the app healthy and up to date.
- Deploying Laravel to a Linux server Free lesson, Pro answers: 10 minutes
- Containers, CI/CD and feature flags Free core, Pro depth: 6 of 20 minutes free
- Module 16
Product features: languages, search, admin and payments
Features most real Laravel products need: Hindi and English, search, an admin panel and payments.
- Localization: Hindi, English and Indian formats Free lesson, Pro answers: 10 minutes India-specific
- Admin panels with Filament Free core, Pro depth: 5 of 15 minutes free
- Payments, subscriptions and GST invoices Free core, Pro depth: 5 of 15 minutes free India-specific
- Module 17
Architecture, multi-tenancy and packages
Structuring large Laravel codebases, serving many customers from one app, and publishing reusable packages.
- Structuring large Laravel applications Free lesson, Pro answers: 10 minutes
- Multi-tenancy and SaaS: one app, many centres Free core, Pro depth: 5 of 15 minutes free
- Building and publishing a Laravel package Free core, Pro depth: 5 of 15 minutes free
- Module 18
AI features and AI-assisted development
Laravel's first-party AI SDK and MCP packages for building AI features, and Boost for working with coding agents, all tested offline with fakes.
- AI features with Laravel's AI SDK and agents Free lesson, Pro answers: 25 minutes
- MCP servers and Laravel Boost Free core, Pro depth: 7 of 20 minutes free
- Module 19
Interview preparation and timed practice
Original interview questions with explained answers and timed machine-coding drills, built only from public documentation.
- Laravel interview concepts and question bank Free lesson, Pro answers: 15 minutes
Related tools
Official documentation
- Laravel 13.x documentation (Laravel (laravel.com))
- Laravel 13 release notes (Laravel (laravel.com))
- Laravel 13 upgrade guide (Laravel (laravel.com))
- PHP: Supported versions (The PHP Group (php.net))