calesj/laravel-vue-starter-kit
最新稳定版本:v1.0.0
Composer 安装命令:
composer create-project calesj/laravel-vue-starter-kit
包简介
Personal Laravel 12 + Vue 3 + Inertia.js starter kit with authentication.
README 文档
README
Personal starter kit based on Laravel 12 + Vue 3 + Inertia.js. Includes authentication pages, Tailwind CSS v4, TypeScript, SSR support, and a clean project structure ready to build on.
Stack
- Laravel 12 (PHP 8.2+)
- Vue 3 with Composition API +
<script setup> - Inertia.js v2
- Tailwind CSS v4
- TypeScript
- Vite 7 with SSR support
- Ziggy (named routes in JS)
- VueUse composable library
Requirements
- PHP 8.2+
- Node.js 20+
- Composer
Getting Started
# Via Laravel installer (recommended) laravel new my-app --using=calesj/laravel-vue-starter-kit # Or via Composer composer create-project calesj/laravel-vue-starter-kit my-app
cd my-app
npm install
npm run dev
Both methods will automatically:
- Copy
.env.exampleto.env - Generate the application key
- Create the SQLite database file
- Run migrations
Development
# Start all dev servers (Laravel, queue, Vite) concurrently composer dev # Or separately php artisan serve npm run dev
Auth Routes
The following routes are registered out of the box:
| Method | URI | Name | Description |
|---|---|---|---|
| GET | /login |
login |
Login page |
| POST | /login |
login.store |
Submit login |
| GET | /forgot-password |
password.request |
Forgot password page |
| POST | /forgot-password |
password.email |
Send reset link |
| GET | /reset-password/{token} |
password.reset |
Reset password page |
| POST | /reset-password |
password.store |
Submit new password |
| POST | /logout |
logout |
Logout (auth middleware) |
| GET | /dashboard |
dashboard |
Dashboard (auth middleware) |
Pages
resources/js/pages/
├── Welcome.vue # Landing page
├── Dashboard.vue # (create this for your app)
└── Auth/
├── Login.vue # Login form
├── ForgotPassword.vue # Forgot password form
└── ResetPassword.vue # Reset password form
Building for Production
npm run build php artisan optimize
SSR
SSR is configured and ready. To run with SSR:
composer dev:ssr
Linting & Formatting
# PHP composer lint # Fix with Pint composer lint:check # Check only # JS/TS npm run lint # ESLint fix npm run format # Prettier fix npm run types:check # TypeScript check
Testing
php artisan test # or composer test
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-15