← All guides

Published · 9 min read

Laravel Rust docs, explained: a map for Laravel developers

Every section of the Laravel Rust documentation in one page: what it covers, the Laravel PHP feature it replaces, what's different, and which guide to read next.

  • docs
  • getting-started
  • reference
On this page
  1. Read these first
  2. What’s different, in one list
  3. Getting started
  4. Architecture concepts
  5. The basics
  6. Frontend
  7. Digging deeper
  8. Database
  9. Models
  10. Security
  11. Communication
  12. Utilities and testing
  13. Searching the docs

The Laravel Rust documentation lives at laravel.com/rust/docs, and it’s long: about seventy pages. If you know Laravel PHP, you don’t need to read it front to back. Most pages describe a feature you already use, with Rust types instead of PHP classes. A handful describe things that work differently, and a few cover features PHP Laravel doesn’t have at all.

This page is a map. For every section of the docs, it says what the page covers, which Laravel PHP feature it corresponds to, and what’s worth knowing before you open it. Where a guide on this site covers the topic side by side with Laravel PHP, it’s linked.

A map of the Laravel Rust documentation’s sections, grouped like the docs sidebar: getting started, architecture, the basics, frontend, digging deeper, database, models, security, communication, utilities and testing. Pages that work much like Laravel PHP are grey, pages that work differently are copper, and pages with no Laravel PHP equivalent are blue.

Read these first

If you have an afternoon, this order gets you from nothing to a working app with the least backtracking:

  1. Installation and Development: the laravel CLI and laravel dev, which runs the server, the queue worker and Vite together. Our getting started guide walks through it.
  2. Routing, Handlers and Middleware: how a request finds your code. See routing and middleware.
  3. Models and Relationships: the ORM, where Rust’s types pay off most. See typed models and relationships.
  4. Validation: form requests become structs. See validation and form requests.
  5. Testing: feature tests without a network port. See testing.

What’s different, in one list

These are the things in the docs most likely to surprise a Laravel PHP developer:

  • It’s a beta. Every page opens with a note that releases before 1.0 may break APIs and configuration. Our page on whether it’s production-ready covers what that means in practice.
  • Upgrades are written for AI agents. Each published release ships documentation matched to its version inside the crate, and the upgrade guide expects your coding agent to read it.
  • The Prelude. One use laravel::prelude::*; brings in requests, responses, redirects, the router and views. Some methods only exist when the prelude is imported, so a “method not found” compiler error often means a missing import.
  • Views use Jinja syntax, not Blade. Templates are rendered by MiniJinja: {{ }}, {% if %}, {% extends %} and macros instead of @if and <x-component>.
  • No lazy loading. Relationships load only when you ask with with or load.
  • No SMTP mailer in the box. Mail goes through Resend, Amazon SES, the log, or a transport you write. See sending email.
  • Migrations go forward only. There’s no down method. See migrations and the database.
  • Dates are Jiff, not Carbon. laravel::time re-exports the Jiff library.
  • Tracing is built in. Every request produces OpenTelemetry spans for queries, cache lookups and HTTP calls.

Getting started

Docs page What it covers In Laravel PHP Guide
Installation Installing the CLI, creating an app, the beta warning Installation Getting started
Upgrading Moving between releases, version-matched docs in the crate Upgrade guide Production-ready?
Development laravel dev, Cargo builds and tests, working with agents composer run dev, Sail CLI cheat sheet
Configuration Environment variables, and config code when a variable isn’t enough .env and config/*.php
Directory Structure Where routes, handlers, models and pages live; target/ and other ignored paths Directory structure
The Prelude The one import most files start with No equivalent (facades and helpers are global in PHP)
Deployment Production builds, environment, keeping the server, workers and scheduler running Deployment, Forge Laravel Cloud

Architecture concepts

Docs page What it covers In Laravel PHP Guide
Request Lifecycle How the app boots and a request reaches your handler Request lifecycle
Service Container Values built once and shared, like an API client Service container
The Context A per-request (or per-command) value that holds the app, so deep code can reach config, routes and services Roughly the global app() helper

The basics

Docs page What it covers In Laravel PHP Guide
Routing Matching a method and URI to code, parameters, model binding Routing Routing
Handlers Async functions grouped in modules Controllers Routing
Middleware Functions around a request, groups, limits, proxies Middleware Middleware
Requests URL, headers, cookies, input and uploaded files Request
Validation Input described as a struct with rules on its fields Form requests, validate() Validation
Responses Anything implementing IntoResponse: text, JSON, views, redirects Responses
URL Generation Absolute URLs to routes, paths and assets route(), url()
Session Per-user state across requests, flash messages Session
Cookies Reading and setting cookies, encrypted in the web group Cookies
CSRF Protection Blocking cross-site form posts CSRF Middleware
Error Handling Errors returned by handlers become JSON or error pages, server failures are logged Exception handler
Logging Structured logs to stderr or daily files, tagged with the request or job Logging
Tracing Timed spans per query and call, exported over OpenTelemetry Telescope or Nightwatch, roughly

Frontend

Docs page What it covers In Laravel PHP Guide
Inertia React, Vue or Svelte pages rendered from handlers Inertia Inertia and Vue
Views Server-rendered HTML files in resources/views Blade views
Templates The Jinja syntax: loops, layouts, filters, macros Blade syntax
Head Metadata Titles, descriptions and preview images rendered on the server Done by hand or with a package

Digging deeper

Docs page What it covers In Laravel PHP Guide
Broadcasting Sending events to the browser over WebSockets Broadcasting
Cache Storing slow results for a while Cache
Concurrency and Tasks Running independent work at the same time, or after the response Concurrency::run, defer()
Console Commands run from your app’s binary Artisan commands CLI cheat sheet
Events One action, many listeners Events and listeners
Feature Flags Gradual rollouts and A/B tests Laravel Pennant
File Storage One API for local disks, Laravel Cloud storage and S3 Storage
HTTP Client Outgoing requests with retries and test fakes, built on reqwest Http
Package Development Crates that add routes, views and tables to an app Packages
Processes Running external programs with timeouts and fakes Process
Queues Jobs, workers, retries and backoff Queues Queues and jobs
Rate Limiting Capping how often an action can happen RateLimiter, throttle Middleware
Task Scheduling Recurring work defined in code Scheduler
WebSockets Reverb as a local WebSocket server for development Reverb
Workflows Processes that run for days and survive restarts No built-in equivalent Durable workflows

Database

Docs page What it covers In Laravel PHP Guide
Getting Started PostgreSQL, MySQL, MariaDB and SQLite over SQLx, raw queries Database Migrations and the database
Query Builder Fluent queries with typed rows Query builder
Pagination Pages read from ?page=, with links paginate()
Schema Builder Tables and indexes defined once for every database Schema Migrations
Migrations Rust files in database/migrations, forward only Migrations Migrations
Seeding #[seeder] functions Seeders
Redis Named Redis connections Redis

Models

Docs page What it covers In Laravel PHP Guide
Getting Started Structs checked at compile time Eloquent Typed models
Relationships Typed relationship fields, eager loading, join rows Eloquent relationships Relationships
Factories Realistic records for tests and seeders Model factories Testing
Search Full-text and semantic search on models Scout

Security

Docs page What it covers In Laravel PHP Guide
Authentication Sessions, remember me, your own login pages Auth, starter kits Authentication
Authorization Policies as structs Gates and policies
Email Verification Signed links and a middleware MustVerifyEmail Authentication
Encryption AES-256 with a MAC, key rotation Crypt
Hashing Bcrypt for passwords Hash
Resetting Passwords Tokens and reset emails, your own forms Password reset Authentication
Social Login Google, GitHub, Microsoft and custom OAuth Socialite

Communication

Docs page What it covers In Laravel PHP Guide
Mail Mailable structs, Resend, SES, queueing Mail Sending email
Notifications One event, a message per channel Notifications
Slack Block Kit messages with buttons that call your app Slack notification channel
SMS Text messages through Telnyx Vonage notification channel

Utilities and testing

Docs page What it covers In Laravel PHP Guide
Dates and Time Jiff, re-exported as laravel::time Carbon
Lottery Run something on 1 in N requests Lottery
Strings Slugs, labels and truncation on every &str Str
Testing Requests through the full stack without a port PHPUnit and Pest feature tests Testing

Searching the docs

The docs site has its own search (Ctrl+K or ⌘K). Two tips make it work better for Laravel PHP developers:

  • Search for the Rust word, not the PHP one. “Controller” finds less than “handler”, “Blade” less than “views”, “Carbon” less than “time”, “Socialite” less than “social login”.
  • Check the version. The docs have a version switcher at the top (0.x and main at the time of writing). Read the one that matches the laravel-rust version in your Cargo.toml.

Where is the Laravel Rust documentation?

On laravel.com, under laravel.com/rust/docs. Each release of the laravel-rust crate also ships documentation matched to that version inside the crate, which is what AI coding agents read when they upgrade your app.

Is the Laravel Rust documentation organised like the Laravel PHP docs?

Mostly. The sections follow the same order (getting started, architecture, the basics, digging deeper, database, security, testing) and most page names match. A few are new, such as The Prelude, The Context, Tracing, Workflows, Feature Flags and Head Metadata.

Which Laravel Rust docs page should I read first?

Installation, then Routing, Handlers and Models. If you know Laravel PHP, read Validation and Error Handling next, because those are where Rust's type system changes the most.