Modern App Scaffolding with the Laravel Installer

The Power of the Laravel Installer

Setting up a new project often feels like a chore, but the

transforms this into a streamlined, interactive experience. While you can always rely on
Composer
to pull in the framework, the dedicated installer acts as a sophisticated wizard. It manages the boilerplate so you can focus on building features. If you use
Laravel Herd
, you already have this tool at your fingertips. Otherwise, a simple global installation via the command line gets you started.

Prerequisites

Before running your first command, ensure your environment meets these requirements:

  • PHP 8.2+: The latest Laravel versions require modern PHP features.
  • Composer: Essential for managing PHP dependencies.
  • Database Driver: Knowledge of
    SQLite
    , MySQL, or PostgreSQL.

Interactive Project Scaffolding

When you execute the laravel new command, the installer initiates a conversation. It doesn't just copy files; it configures your entire stack based on your preferences.

# Start a new project named 'nexus'
laravel new nexus

You will choose between starter kits like

for simple authentication or
Laravel Jetstream
for robust team management. You also decide on your frontend stack—
Livewire
for TALL stack enthusiasts or
Vue.js
with
Inertia
for those who prefer a single-page application feel.

Choosing Your Testing Strategy

Laravel prioritizes developer confidence. The installer asks whether you want to use

or
Pest
. While PHPUnit is the industry standard, Pest provides a highly readable, functional syntax that many modern developers prefer for its expressive nature.

Database and Migrations

Modern development increasingly favors

for its simplicity. The installer can automatically create your database file and run your initial migrations. This means that within seconds of finishing the prompt, you have a fully functional application with a working login system and database schema.

Tips & Gotchas

  • Latest Version Only: The installer always pulls the latest stable release (e.g.,
    Laravel
    ). Use Composer directly if you need a specific legacy version.
  • Git Initialization: The installer offers to initialize a repository for you, saving another manual step in your workflow.
2 min read