Create a New Project
You have the tools. Now one command turns an empty folder into a working Laravel app with a welcome page, a database and tests ready to run. The command asks a few questions on the way, and each answer shapes the project.
The rule
laravel newasks, builds, then .env holds the machine-specific settings.
Create Lendly with the installer:
laravel new lendlyThe installer asks a short series of questions. The exact wording changes between versions, but in Laravel 12 you meet these:
- Starter kit: none, React, Vue or Livewire. Choosing none gives a bare app. The next section covers the kits.
- Testing framework: Pest or PHPUnit.
- Database: SQLite is the default and needs no server, since the whole database is one file in
database/. - Whether to run
npm installand build front-end assets.
Without the installer, Composer does the same core job:
composer create-project laravel/laravel lendlyThen it builds. It downloads packages into vendor/, copies .env.example to .env, generates an APP_KEY inside it, and runs the first migrations so the default tables exist.
.env is the file for settings that differ per machine, and for secrets:
APP_NAME=Lendly
APP_ENV=local
APP_DEBUG=true
APP_URL=http://lendly.test
DB_CONNECTION=sqliteIt is listed in .gitignore, so it never goes to git. Teammates copy .env.example and fill in their own values.
To see the app, open http://lendly.test if the folder is parked in Herd. Otherwise, run composer run dev, which starts the PHP server, the Vite asset builder and a queue worker together, and open http://127.0.0.1:8000.