Seiten · Laravilt
Installation
Create a Laravel app, choose Vue or React, and install Laravilt with one command.
Check the requirements first.
1. Create a Laravel app
When asked for a starter kit, pick Vue or React. Laravilt uses that stack for its panel.
React support requires Laravilt v1.1 or later.
2. Require Laravilt
This pulls in every Laravilt package: support, panel, auth, forms, tables, actions, schemas, infolists, notifications, widgets, query-builder, ai and plugins.
3. Run the installer
The installer:
- Asks for the frontend stack (Vue or React). The default is detected from your
package.json. - Asks for the panel ID (default
admin) and which features to enable: login, registration, 2FA, passkeys, social login, API tokens, AI and more. - Publishes the frontend for that stack, the configs and brand icons, and writes
LARAVILT_FRONTEND=vue|reactto.envand.env.example. - Runs migrations, creates
app/Providers/Laravilt/AdminPanelProvider.phpand theapp/Laravilt/Admin/folders, and registers the provider inbootstrap/providers.php. - Runs
npm installandnpm run build. - Optionally creates an admin user (
php artisan laravilt:user).
Installer Prompts lists every question.
Options
| Option | Effect |
|---|---|
--stack=vue / --stack=react | Skip the stack question. |
--skip-migrations | Don't run migrate. |
--skip-npm | Don't run npm install / npm run build. |
--skip-panel | Don't create a panel. Create one later with php artisan laravilt:panel. |
For example, a React install that you build yourself:
The installer overwrites starter-kit files such as package.json, vite.config.ts, resources/js/app.*, routes/web.php and app/Models/User.php. Run it on a fresh app, or commit your work first.
4. Create an admin user
If you skipped it during install:
5. Open the panel
Visit http://localhost:8000/admin (or your Herd/Valet domain) and log in.
Next
- Quick Start: generate your first resource.
- Troubleshooting if something didn't work.