Laravel Documentation

The full Laravel framework documentation, from installation to advanced topics. Pick a topic and start building.

AI Assisted Development

Introduction - Why Laravel for AI Development? - Laravel Boost - Installation - Available Tools - AI Guidelines...

Read now

Artisan Console

Introduction - Tinker (REPL) - Writing Commands - Generating Commands - Command Structure - Closure Commands...

Read now

Asset Bundling (Vite)

Introduction - Installation & Setup - Installing Node - Installing Vite and the Laravel Plugin - Configuring Vite - Loading Your Scripts and Styles...

Read now

Authentication

Introduction - Starter Kits - Database Considerations - Ecosystem Overview - Authentication Quickstart - Install a Starter Kit...

Read now

Authorization

Introduction - Gates - Writing Gates - Authorizing Actions - Gate Responses - Intercepting Gate Checks...

Read now

Blade Templates

Introduction - Supercharging Blade With Livewire - Displaying Data - HTML Entity Encoding - Blade and JavaScript Frameworks - Blade Directives...

Read now

Broadcasting

Introduction - Quickstart - Server Side Installation - Reverb - Pusher Channels - Ably...

Read now

Cache

Introduction - Configuration - Driver Prerequisites - Cache Usage - Obtaining a Cache Instance - Retrieving Items From the Cache...

Read now

Collections

Introduction - Creating Collections - Extending Collections - Available Methods - Higher Order Messages - Lazy Collections...

Read now

Concurrency

Introduction - Running Concurrent Tasks - Deferring Concurrent Tasks <a name="introduction"></a> ## Introduction...

Read now

Configuration

Introduction - Environment Configuration - Environment Variable Types - Retrieving Environment Configuration - Determining the Current Environment - E...

Read now

Console Tests

Introduction - Success / Failure Expectations - Input / Output Expectations - Console Events <a name="introduction"></a>...

Read now

Context

Introduction - How it Works - Capturing Context - Stacks - Retrieving Context - Determining Item Existence...

Read now

Contracts

Introduction - Contracts vs. Facades - When to Use Contracts - How to Use Contracts - Contract Reference...

Read now

Contribution Guide

Bug Reports - Support Questions - Core Development Discussion - Which Branch? - Compiled Assets - AI-Generated Contributions...

Read now

Controllers

Introduction - Writing Controllers - Basic Controllers - Single Action Controllers - Controller Middleware - Middleware Attributes...

Read now

CSRF Protection

Introduction - Preventing CSRF Requests - Origin Verification - Excluding URIs - X-CSRF-Token - X-XSRF-Token...

Read now

Database Testing

Introduction - Resetting the Database After Each Test - Model Factories - Running Seeders - Available Assertions...

Read now

Database: Getting Started

Introduction - Configuration - Read and Write Connections - Running SQL Queries - Using Multiple Database Connections - Listening for Query Events...

Read now

Database: Migrations

Introduction - Generating Migrations - Squashing Migrations - Migration Structure - Running Migrations - Rolling Back Migrations...

Read now

Database: Pagination

Introduction - Basic Usage - Paginating Query Builder Results - Paginating Eloquent Results - Cursor Pagination - Manually Creating a Paginator...

Read now

Database: Query Builder

Introduction - Running Database Queries - Chunking Results - Streaming Results Lazily - Aggregates - Select Statements...

Read now

Database: Seeding

Introduction - Writing Seeders - Using Model Factories - Calling Additional Seeders - Muting Model Events - Running Seeders...

Read now

Deployment

Introduction - Server Requirements - Server Configuration - Nginx - FrankenPHP - Directory Permissions...

Read now

Directory Structure

Introduction - The Root Directory - The app Directory - The bootstrap Directory - The config Directory - The database Directory...

Read now

Documentation

Release Notes - Upgrade Guide - Contribution Guide - ## Getting Started - Installation - Configuration - Agentic Development...

Read now

Eloquent: API Resources

Introduction - Generating Resources - Concept Overview - Resource Collections - Writing Resources - Data Wrapping...

Read now

Eloquent: Collections

Introduction - Available Methods - Custom Collections <a name="introduction"></a> ## Introduction...

Read now

Eloquent: Factories

Introduction - Defining Model Factories - Generating Factories - Factory States - Factory Callbacks - Creating Models Using Factories...

Read now

Eloquent: Getting Started

Introduction - Generating Model Classes - Eloquent Model Conventions - Table Names - Primary Keys - UUID and ULID Keys...

Read now

Eloquent: Mutators & Casting

Introduction - Accessors and Mutators - Defining an Accessor - Defining a Mutator - Attribute Casting - Array and JSON Casting...

Read now

Eloquent: Relationships

Introduction - Defining Relationships - One to One / Has One - One to Many / Has Many - One to Many (Inverse) / Belongs To - Has One of Many...

Read now

Eloquent: Serialization

Introduction - Serializing Models and Collections - Serializing to Arrays - Serializing to JSON - Hiding Attributes From JSON - Appending Values to JS...

Read now

Email Verification

Introduction - Model Preparation - Database Preparation - Routing - The Email Verification Notice - The Email Verification Handler...

Read now

Encryption

Introduction - Configuration - Gracefully Rotating Encryption Keys - Using the Encrypter <a name="introduction"></a>...

Read now

Error Handling

Introduction - Configuration - Handling Exceptions - Reporting Exceptions - Exception Log Levels - Ignoring Exceptions by Type...

Read now

Events

Introduction - Generating Events and Listeners - Registering Events and Listeners - Event Discovery - Manually Registering Events - Closure Listeners...

Read now

Facades

Introduction - When to Utilize Facades - Facades vs. Dependency Injection - Facades vs. Helper Functions - How Facades Work - Real-Time Facades...

Read now

File Storage

Introduction - Configuration - The Local Driver - The Public Disk - Driver Prerequisites - Scoped and Read-Only Filesystems...

Read now

Frontend

Introduction - Using PHP - PHP and Blade - Livewire - Starter Kits - Using React, Svelte, or Vue...

Read now

Hashing

Introduction - Configuration - Basic Usage - Hashing Passwords - Verifying That a Password Matches a Hash - Determining if a Password Needs to be Reha...

Read now

Helpers

Introduction - Available Methods - Other Utilities - Benchmarking - Dates and Time - Deferred Functions...

Read now

HTTP Client

Introduction - Making Requests - Request Data - Headers - Authentication - Timeout...

Read now

HTTP Requests

Introduction - Interacting With The Request - Accessing the Request - Request Path, Host, and Method - Request Headers - Request IP Address...

Read now

HTTP Responses

Creating Responses - Attaching Headers to Responses - Attaching Cookies to Responses - Cookies and Encryption - Redirects - Redirecting to Named Route...

Read now

HTTP Session

Introduction - Configuration - Driver Prerequisites - Interacting With the Session - Retrieving Data - Storing Data...

Read now

HTTP Tests

Introduction - Making Requests - Customizing Request Headers - Cookies - Session / Authentication - Debugging Responses...

Read now

Installation

Meet Laravel - Why Laravel? - Creating a Laravel Application - Installing PHP and the Laravel Installer - Creating an Application - Initial Configurat...

Read now

Laravel AI SDK

Introduction - Installation - Configuration - Custom Base URLs - Provider Support - Agents...

Read now

Laravel Boost

Introduction - Installation - Keeping Boost Resources Updated - Set Up Your Agents - MCP Server - Available MCP Tools...

Read now

Laravel Cashier (Paddle)

Introduction - Upgrading Cashier - Installation - Paddle Sandbox - Configuration - Billable Model...

Read now

Laravel Cashier (Stripe)

Introduction - Upgrading Cashier - Installation - Configuration - Billable Model - API Keys...

Read now

Laravel Dusk

Introduction - Installation - Managing ChromeDriver Installations - Using Other Browsers - Getting Started - Generating Tests...

Read now

Laravel Envoy

Introduction - Installation - Writing Tasks - Defining Tasks - Multiple Servers - Setup...

Read now

Laravel Folio

Introduction - Installation - Page Paths / URIs - Subdomain Routing - Creating Routes - Nested Routes...

Read now

Laravel Fortify

Introduction - What is Fortify? - When Should I Use Fortify? - Installation - Fortify Features - Disabling Views...

Read now

Laravel Homestead

Introduction - Installation and Setup - First Steps - Configuring Homestead - Configuring Nginx Sites - Configuring Services...

Read now

Laravel Horizon

Introduction - Installation - Configuration - Dashboard Authorization - Max Job Attempts - Job Timeout...

Read now

Laravel MCP

Introduction - Installation - Publishing Routes - Creating Servers - Server Registration - Web Servers...

Read now

Laravel Mix

Introduction <a name="introduction"></a> ## Introduction > [!WARNING]...

Read now

Laravel Octane

Introduction - Installation - Server Prerequisites - FrankenPHP - RoadRunner - Swoole...

Read now

Laravel Passport

Introduction - Passport or Sanctum? - Installation - Deploying Passport - Upgrading Passport - Configuration...

Read now

Laravel Pennant

Introduction - Installation - Configuration - Defining Features - Class Based Features - Checking Features...

Read now

Laravel Pint

Introduction - Installation - Running Pint - Configuring Pint - Presets - Rules...

Read now

Laravel Pulse

Introduction - Installation - Configuration - Dashboard - Authorization - Customization...

Read now

Laravel Reverb

Introduction - Installation - Configuration - Application Credentials - Allowed Origins - Additional Applications...

Read now

Laravel Sail

Introduction - Installation and Setup - Installing Sail Into Existing Applications - Rebuilding Sail Images - Configuring A Shell Alias - Starting and...

Read now

Laravel Sanctum

Introduction - How it Works - Installation - Configuration - Overriding Default Models - API Token Authentication...

Read now

Laravel Scout

Introduction - Installation - Queueing - Driver Prerequisites - Configuration - Configuring Searchable Data...

Read now

Laravel Socialite

Introduction - Installation - Upgrading Socialite - Configuration - Authentication - Routing...

Read now

Laravel Telescope

Introduction - Installation - Local Only Installation - Configuration - Data Pruning - Dashboard Authorization...

Read now

Laravel Valet

Introduction - Installation - Upgrading Valet - Serving Sites - The "Park" Command - The "Link" Command...

Read now

License

Copyright (c) Taylor Otwell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation...

Read now

Localization

Introduction - Publishing the Language Files - Configuring the Locale - Pluralization Language - Defining Translation Strings - Using Short Keys...

Read now

Logging

Introduction - Configuration - Available Channel Drivers - Channel Prerequisites - Logging Deprecation Warnings - Building Log Stacks...

Read now

Mail

Introduction - Configuration - Driver Prerequisites - Failover Configuration - Round Robin Configuration - Generating Mailables...

Read now

Middleware

Introduction - Defining Middleware - Registering Middleware - Global Middleware - Assigning Middleware to Routes - Middleware Groups...

Read now

Mocking

Introduction - Mocking Objects - Mocking Facades - Facade Spies - Interacting With Time...

Read now

MongoDB

Introduction - Installation - MongoDB Driver - Starting a MongoDB Server - Install the Laravel MongoDB Package - Configuration...

Read now

Notifications

Introduction - Generating Notifications - Sending Notifications - Using the Notifiable Trait - Using the Notification Facade - Specifying Delivery Cha...

Read now

Package Development

Introduction - A Note on Facades - Package Discovery - Service Providers - Resources - Configuration...

Read now

Precognition

Introduction - Live Validation - Using Vue - Using React - Using Alpine and Blade - Configuring Axios...

Read now

Processes

Introduction - Invoking Processes - Process Options - Process Output - Pipelines - Asynchronous Processes...

Read now

Prompts

Introduction - Installation - Available Prompts - Text - Textarea - Number...

Read now

Queues

Introduction - Connections vs. Queues - Driver Notes and Prerequisites - Creating Jobs - Generating Job Classes - Class Structure...

Read now

Rate Limiting

Introduction - Cache Configuration - Basic Usage - Manually Incrementing Attempts - Clearing Attempts...

Read now

Redis

Introduction - Configuration - Clusters - Predis - PhpRedis - Interacting With Redis...

Read now

Release Notes

Versioning Scheme - Support Policy - Laravel 13 <a name="versioning-scheme"></a> ## Versioning Scheme...

Read now

Request Lifecycle

Introduction - Lifecycle Overview - First Steps - HTTP / Console Kernels - Service Providers - Routing...

Read now

Resetting Passwords

Introduction - Configuration - Driver Prerequisites - Model Preparation - Configuring Trusted Hosts - Routing...

Read now

Routing

Basic Routing - The Default Route Files - Redirect Routes - View Routes - Listing Your Routes - Routing Customization...

Read now

Search

Introduction - Full-Text Search - Semantic / Vector Search - Reranking - Scout Search Engines - Full-Text Search...

Read now

Service Container

Introduction - Zero Configuration Resolution - When to Utilize the Container - Binding - Binding Basics - Binding Interfaces to Implementations...

Read now

Service Providers

Introduction - Writing Service Providers - The Register Method - The Boot Method - Registering Providers - Deferred Providers...

Read now

Starter Kits

Introduction - Creating an Application Using a Starter Kit - Available Starter Kits - React - Svelte - Vue...

Read now

Strings

Introduction - Available Methods <a name="introduction"></a> ## Introduction...

Read now

Task Scheduling

Introduction - Defining Schedules - Scheduling Artisan Commands - Scheduling Queued Jobs - Scheduling Shell Commands - Schedule Frequency Options...

Read now

Testing: Getting Started

Introduction - Environment - Creating Tests - Running Tests - Running Tests in Parallel - Reporting Test Coverage...

Read now

Upgrade Guide

Upgrading To 13.0 From 12.x - Upgrading Using AI <a name="high-impact-changes"></a> ## High Impact Changes...

Read now

URL Generation

Introduction - The Basics - Generating URLs - Accessing the Current URL - URLs for Named Routes - Signed URLs...

Read now

Validation

Introduction - Validation Quickstart - Defining the Routes - Creating the Controller - Writing the Validation Logic - Displaying the Validation Errors...

Read now

Views

Introduction - Writing Views in React / Svelte / Vue - Creating and Rendering Views - Nested View Directories - Creating the First Available View - De...

Read now

Our network