### Run the interactive installer for Laravel Boost Source: https://laravel.com/framework/docs/13.x After installation, run this command to start the interactive installer. It auto-detects your IDE and AI agents, allowing you to opt into features that fit your project. ```bash php artisan boost:install ``` -------------------------------- ### AI Agent Prompt for Laravel Setup Source: https://laravel.com/framework/docs/13.x Paste this prompt into an AI coding agent like Claude Code or OpenCode to have it fetch Laravel's installation guidance from https://laravel.com/for/agents and follow it as the source of truth for setup. ```text I'm building a new Laravel application. Fetch and follow the instructions from https://laravel.com/for/agents. Treat the returned Markdown as the source of truth for how to install and set up Laravel in this session. ``` -------------------------------- ### Start Laravel Development Server, Queue Worker, and Vite Source: https://laravel.com/framework/docs/13.x After creating the application, run these commands to install frontend dependencies, build assets, and start the local development server, queue worker, and Vite dev server using the 'dev' Composer script. Access the app at http://localhost:8000. ```bash cd example-app npm install && npm run build composer run dev ``` -------------------------------- ### Create a New Laravel Application Source: https://laravel.com/framework/docs/13.x Run this command after installing PHP, Composer, and the Laravel installer to create a new Laravel application named 'example-app'. ```bash laravel new example-app ``` -------------------------------- ### Install Laravel Installer via Composer Source: https://laravel.com/framework/docs/13.x Use this command if you already have PHP and Composer installed to install the Laravel installer globally via Composer. ```bash composer global require laravel/installer ``` -------------------------------- ### Install PHP, Composer, and Laravel Installer on Linux Source: https://laravel.com/framework/docs/13.x Run this command in a terminal on Linux to install PHP, Composer, and the Laravel installer via php.new. Restart your terminal session after running it. ```bash /bin/bash -c "$(curl -fsSL https://php.new/install/linux/8.5)" ``` -------------------------------- ### Install PHP, Composer, and Laravel Installer on macOS Source: https://laravel.com/framework/docs/13.x Run this command in a terminal on macOS to install PHP, Composer, and the Laravel installer via php.new. Restart your terminal session after running it. ```bash /bin/bash -c "$(curl -fsSL https://php.new/install/mac/8.5)" ``` -------------------------------- ### Install Laravel LSP globally via Composer Source: https://laravel.com/framework/docs/13.x Run this command to install the Laravel LSP globally via Composer. Ensure Composer's global vendor bin directory is on your PATH. ```bash composer global require laravel/lsp ``` -------------------------------- ### Install PHP, Composer, and Laravel Installer on Windows PowerShell Source: https://laravel.com/framework/docs/13.x Run this command as administrator in Windows PowerShell to install PHP, Composer, and the Laravel installer via php.new. Restart your terminal session after running it. ```powershell # Run as administrator... Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows/8.5')) ``` -------------------------------- ### Create a new Laravel app with Herd on Windows Source: https://laravel.com/framework/docs/13.x Run these commands in PowerShell after installing Herd on Windows. The Laravel CLI is bundled with Herd. The commands create a new Laravel application in the parked directory and open it in the browser. ```powershell cd ~\Herd laravel new my-app cd my-app herd open ``` -------------------------------- ### Install Laravel Boost as a development dependency Source: https://laravel.com/framework/docs/13.x Run this command to install Laravel Boost in Laravel 10, 11, 12, or 13 applications running PHP 8.1 or higher. Use the --dev flag to add it as a development dependency. ```bash composer require laravel/boost --dev ``` -------------------------------- ### Create a new Laravel app with Herd on macOS Source: https://laravel.com/framework/docs/13.x Run these commands in your terminal after installing Herd on macOS. The Laravel CLI is bundled with Herd. The commands create a new Laravel application in the parked directory and open it in the browser. ```bash cd ~/Herd laravel new my-app cd my-app herd open ``` -------------------------------- ### Run database migrations Source: https://laravel.com/framework/docs/13.x After creating a database other than SQLite, run the migrations to create the application's database tables. ```bash php artisan migrate ``` -------------------------------- ### MySQL database configuration in .env Source: https://laravel.com/framework/docs/13.x Update the DB_* variables in the .env file to use MySQL instead of the default SQLite. Set DB_CONNECTION to mysql and provide host, port, database name, username, and password. ```plaintext DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD= ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.