Documentation Index
Fetch the complete documentation index at: https://kawax.biz/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
Before getting started with Laravel, make sure your system meets the following requirements:- PHP 8.3 or higher
- Composer (PHP package manager)
- Laravel Installer (optional but recommended)
Node.js/npm or Bun is also needed to compile front-end assets.
Installing PHP and the Laravel installer
The quickest way to install PHP, Composer, and the Laravel installer together is to run the appropriate command for your operating system:Creating a new Laravel application
Once PHP, Composer, and the Laravel installer are ready, create a new application. The installer will prompt you to choose a testing framework, database, and starter kit:dev Composer script:
Starter kits automatically scaffold the application with authentication. Laravel 13 offers four options: React, Vue, Svelte, and Livewire.
Choosing a starter kit
When you runlaravel new, you can pick from the following starter kits:
React
React
Vue
Vue
A Vue front-end starter kit powered by Inertia. Uses the Vue Composition API, TypeScript, Tailwind CSS, and shadcn-vue.
Svelte
Svelte
A Svelte front-end starter kit powered by Inertia. Uses Svelte 5, TypeScript, Tailwind CSS, and shadcn-svelte.
Livewire
Livewire
A starter kit built with Laravel Livewire, letting you build dynamic UIs using only PHP and Blade templates. Uses Tailwind CSS and Flux UI. Ideal for teams who prefer staying in PHP.
Laravel Herd
Laravel Herd is a native Laravel and PHP development environment for macOS and Windows. It installs PHP, Nginx, and the Laravel CLI in one step.macOS
- Download the installer from the Herd website.
- Run the installer — PHP is configured automatically.
~/Herdis set as the default park directory.
Windows
- Download the Windows installer from the Herd website.
- Launch Herd and complete the onboarding steps.
%USERPROFILE%\Herdbecomes the park directory.
Initial configuration
Environment file
Many of Laravel’s configuration values vary between environments. These values are managed in the.env file at the root of your project.
Application key
A fresh installation generated bylaravel new already has an application key set. If you cloned a project manually, generate one with:
Database configuration
By default, Laravel is configured to use SQLite. To switch to MySQL or PostgreSQL, update your.env file:
IDE support
VS Code / Cursor
VS Code / Cursor
Install the official Laravel VS Code Extension for syntax highlighting, snippets, Artisan command integration, and smart autocomplete for Eloquent models.
PhpStorm
PhpStorm
PhpStorm has built-in Laravel support, providing smart autocomplete for Blade templates, Eloquent models, routes, views, and translations.
Next steps
Routing
Learn how to define routes and handle HTTP requests in Laravel.