Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Web development

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 to read 19 modules

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

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.

  1. 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.

    1. What Laravel is and when to use it Beginner Free lesson, Pro answers: 15 minutes
    2. Install PHP, Composer and Laravel 13 Beginner Free lesson, Pro answers: 15 minutes
    3. Project structure, configuration and Artisan Beginner Free lesson, Pro answers: 10 minutes
  2. 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.

    1. Your first page: route, controller and view Beginner Free lesson, Pro answers: 10 minutes
    2. Your first CRUD feature with Eloquent Beginner Free lesson, Pro answers: 15 minutes
  3. Module 3

    Requests, routing and middleware

    How a request travels through Laravel, and the routing, middleware, controller, request and response APIs every feature uses.

    1. How Laravel handles a request Beginner Free lesson, Pro answers: 15 minutes
    2. Routing, route parameters and URL generation Beginner Free lesson, Pro answers: 15 minutes
    3. Middleware and rate limiting Intermediate Free lesson, Pro answers: 10 minutes
    4. Controllers and route model binding Beginner Free lesson, Pro answers: 15 minutes
    5. Requests, input and uploaded files Beginner Free lesson, Pro answers: 10 minutes
    6. Responses, redirects, sessions and cookies Intermediate Free lesson, Pro answers: 15 minutes
  4. 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.

    1. Blade templates and safe output Beginner Free lesson, Pro answers: 10 minutes
    2. Blade components, layouts and page metadata Intermediate Free lesson, Pro answers: 15 minutes
    3. Assets with Vite, Tailwind CSS and a CSP nonce Beginner Free lesson, Pro answers: 15 minutes
    4. Interactive pages with Livewire 4 Intermediate Free lesson, Pro answers: 15 minutes
    5. Single-page apps with Inertia 3 Intermediate Free lesson, Pro answers: 20 minutes
  5. 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.

    1. Databases and the query builder Beginner Free lesson, Pro answers: 15 minutes
    2. Migrations and schema design Beginner Free lesson, Pro answers: 15 minutes
    3. Eloquent models, mass assignment, soft deletes Beginner Free lesson, Pro answers: 10 minutes
    4. Factories, seeders and realistic test data Beginner Free lesson, Pro answers: 10 minutes
    5. Eloquent relationships, pivots and morph maps Intermediate Free lesson, Pro answers: 15 minutes
    6. Eager loading and the N+1 query problem Intermediate Free lesson, Pro answers: 10 minutes
    7. Casts, accessors, enums and value objects Intermediate Free lesson, Pro answers: 10 minutes
    8. Scopes, Eloquent collections and pagination Intermediate Free lesson, Pro answers: 10 minutes
  6. Module 6

    Advanced database work

    Correctness under concurrency, large data sets, and schema changes that don't take the site down.

    1. Transactions, locks and race conditions Advanced Free lesson, Pro answers: 15 minutes
    2. Large data sets and query performance Advanced Free lesson, Pro answers: 10 minutes
    3. Zero-downtime migrations and database specifics Advanced Free lesson, Pro answers: 20 minutes
  7. 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.

    1. Validation rules and error messages Beginner Free lesson, Pro answers: 15 minutes
    2. Form requests, custom rules and Precognition Intermediate Free lesson, Pro answers: 15 minutes
    3. File uploads, storage disks and images Intermediate Free lesson, Pro answers: 15 minutes
  8. 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.

    1. Starter kits, Fortify and social login Beginner Free lesson, Pro answers: 10 minutes
    2. How Laravel authentication works Intermediate Free core, Pro depth: 5 of 15 minutes free
    3. Passwords, verification and two-factor Intermediate Free core, Pro depth: 4 of 15 minutes free
    4. Authorization: gates and policies Intermediate Free core, Pro depth: 5 of 15 minutes free
  9. Module 9

    APIs

    JSON APIs with resources and JSON:API, token and SPA authentication, OAuth2 when you need it, and outbound HTTP and webhooks.

    1. Building JSON APIs with Laravel Intermediate Free lesson, Pro answers: 10 minutes
    2. API resources, pagination and JSON:API Intermediate Free core, Pro depth: 5 of 15 minutes free
    3. API auth with Sanctum and Passport Intermediate Free core, Pro depth: 6 of 15 minutes free
    4. HTTP client, outbound calls and webhooks Intermediate Free core, Pro depth: 5 of 15 minutes free
  10. 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.

    1. Events, listeners and model observers Intermediate Free lesson, Pro answers: 15 minutes
    2. Queues and jobs: work after the response Intermediate Free core, Pro depth: 5 of 15 minutes free
    3. Batches, chains, workers and Horizon Advanced Free core, Pro depth: 5 of 15 minutes free
    4. Task scheduling, Artisan commands and processes Intermediate Free core, Pro depth: 6 of 20 minutes free
    5. Mail and notifications Intermediate Free core, Pro depth: 5 of 15 minutes free
    6. Broadcasting and Reverb: real-time updates Advanced Free core, Pro depth: 5 of 15 minutes free
  11. 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.

    1. The service container and dependency injection Intermediate Free lesson, Pro answers: 15 minutes
    2. Service providers, facades and contracts Intermediate Free core, Pro depth: 3 of 10 minutes free
    3. Collections, strings, numbers and dates Beginner Free core, Pro depth: 4 of 10 minutes free
    4. Errors, logging and context Intermediate Free core, Pro depth: 6 of 15 minutes free
  12. 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.

    1. Testing with Pest and PHPUnit Beginner Free lesson, Pro answers: 15 minutes
    2. HTTP tests and database tests Intermediate Free core, Pro depth: 6 of 20 minutes free
    3. Fakes, mocks and time travel Intermediate Free core, Pro depth: 6 of 20 minutes free
    4. Browser tests, static analysis and CI Intermediate Free core, Pro depth: 5 of 20 minutes free
  13. Module 13

    Security in depth

    What Laravel protects by default, what you must add, the vulnerabilities that still happen in Laravel apps, and secrets.

    1. Laravel's security model and hardening Intermediate Free lesson, Pro answers: 10 minutes
    2. Common Laravel vulnerabilities: a lab Advanced Free core, Pro depth: 5 of 15 minutes free
    3. Encryption, secrets and key rotation Intermediate Free core, Pro depth: 5 of 15 minutes free
  14. Module 14

    Caching and performance

    Caching done safely, measuring before optimising, and long-running servers with Octane.

    1. Caching data, responses and the framework Intermediate Free lesson, Pro answers: 20 minutes
    2. Profiling and optimizing a Laravel app Advanced Free core, Pro depth: 5 of 15 minutes free
    3. Octane, FrankenPHP and concurrency Advanced Free core, Pro depth: 5 of 15 minutes free
  15. 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.

    1. Deploying Laravel to a Linux server Intermediate Free lesson, Pro answers: 10 minutes
    2. Containers, CI/CD and feature flags Advanced Free core, Pro depth: 6 of 20 minutes free
  16. Module 16

    Product features: languages, search, admin and payments

    Features most real Laravel products need: Hindi and English, search, an admin panel and payments.

    1. Localization: Hindi, English and Indian formats Intermediate Free lesson, Pro answers: 10 minutes India-specific
    2. Admin panels with Filament Intermediate Free core, Pro depth: 5 of 15 minutes free
    3. Payments, subscriptions and GST invoices Advanced Free core, Pro depth: 5 of 15 minutes free India-specific
  17. Module 17

    Architecture, multi-tenancy and packages

    Structuring large Laravel codebases, serving many customers from one app, and publishing reusable packages.

    1. Structuring large Laravel applications Advanced Free lesson, Pro answers: 10 minutes
    2. Multi-tenancy and SaaS: one app, many centres Advanced Free core, Pro depth: 5 of 15 minutes free
    3. Building and publishing a Laravel package Advanced Free core, Pro depth: 5 of 15 minutes free
  18. 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.

    1. AI features with Laravel's AI SDK and agents Intermediate Free lesson, Pro answers: 25 minutes
    2. MCP servers and Laravel Boost Intermediate Free core, Pro depth: 7 of 20 minutes free
  19. Module 19

    Interview preparation and timed practice

    Original interview questions with explained answers and timed machine-coding drills, built only from public documentation.

    1. Laravel interview concepts and question bank Intermediate Free lesson, Pro answers: 15 minutes

Related tools

Official documentation

More in Web development

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.