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.
The shortcut
Read a fresh project as three layers: the code you will edit, the settings in .env, and the downloaded packages in vendor/. Only the first is yours to write. The second is yours to configure. The third you never touch.
Run the installer
laravel new lendlyand pick: no starter kit, Pest, SQLite.
The trap is committing .env. It holds your app key and, later, database passwords. Commit .env.example with blank secrets instead.
Drills
Answer fast — trust the rule.
Which file should a teammate copy to get their own settings?
Why is SQLite a handy default for a new project?
Where does laravel new put downloaded packages?
You want the browser tab to say "Lendly". What is the quickest correct change?
What does composer run dev start?
Remember
laravel newasks, builds, and leaves machine-specific settings in.env.- Three layers: your code, your
.env, andvendor/, which you never touch. - Trap: never commit
.env. Share.env.exampleinstead.
