基于 Laravel 与 Vue 3,使用 Vite 和 SSR 支持
druid — Laravel 启动器模板
作者 druidweb
Druid 是一个基于 Laravel 与 Vue 的入门套件,用 TypeScript、Inertia 和 Tailwind 搭建,并内置 Fortify 认证、团队、API 令牌、双因素认证等 Jetstream 等价功能。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
使用 TypeScript 与 Shadcn-Vue 组件,Tailwind 支持暗色模式
内置 Fortify 认证与 Jetstream 等价功能:双因素认证、API 令牌、团队与邀请、账户删除等
通过 config/teams.php 的 features 数组配置功能开关,UI 自动适配
提供 Pest PHP、Vitest、Larastan、ESLint、Prettier 与 GitHub Actions CI/CD
模板详细介绍
Druid Starter Kit 是一个 Laravel + Vue 入门套件,README 将其定位为包含完整测试覆盖与自动化工具链的开发基础。核心栈包括 Laravel、Vue 3、Vite、TypeScript、Tailwind、Inertia.js,并使用 Shadcn-Vue 作为 UI 组件来源。认证与安全部分覆盖 Fortify 与 Jetstream 的等价功能:双因素认证、API 令牌、团队与邀请、头像上传、浏览器会话、账户删除、条款与隐私政策、密码重置、邮箱验证和密码确认。开发者体验方面提供 Pest PHP、Vitest、Larastan、Laravel PAO、ESLint、Prettier、语义化发布和 GitHub Actions CI/CD。README 说明所有 Jetstream 等价功能可在 config/teams.php 中通过 features 数组启用或移除,UI 会自动适配。安装要求 PHP 8.5+、Composer 2+、Node.js 24+(推荐 Bun),数据库支持 SQLite、MySQL 或 PostgreSQL。README 未提供项目结构、路由、具体页面实现或部署到生产环境的详细步骤,也未说明各功能在真实业务场景中的边界。
适合你的项目吗?
适用场景
- 需要 Laravel + Vue 全栈起点并希望内置认证、团队和 API 令牌的项目
- 希望使用 TypeScript、Inertia.js 和 Shadcn-Vue 构建管理后台或 SaaS 界面
- 需要可配置功能开关、按需启用团队、双因素认证或账户删除的 Laravel 应用
- 希望以 Pest、Vitest、Larastan 和 CI/CD 作为默认开发流程的团队
适合人群
- 熟悉 Laravel、Vue 与 TypeScript 的开发者
- 需要快速搭建带认证与团队功能的 Laravel 应用
- 重视测试、静态分析与自动化发布流程的团队
- 使用 SQLite、MySQL 或 PostgreSQL 的 Laravel 项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 PHP 8.5 或更高版本、Composer 2+、Node.js 24+(推荐 Bun)
- 2
需全局安装 Laravel installer v5.14+,再通过 laravel new my_app --using=druidweb/druid 创建项目
- 3
开发命令包括 composer dev、bun run build、composer lint、composer test、bun run test
- 4
数据库支持 SQLite、MySQL 或 PostgreSQL,README 未提供具体环境变量配置示例
- 5
功能开关在 config/teams.php 的 features 数组中配置,移除条目即可禁用对应功能
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/druidweb/druid/blob/1.x/LICENSE.mdhttps://github.com/druidweb/druid/blob/1.x/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-13。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 80 / 100
- 技术栈
- Laravel
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-10
- 截图检查日期
- 2026-10-13
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Laravel。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15
查看当时使用的来源资料
SHA-256: 7b2d4d6988b0dd1707894f8d570b80933440dd83e2390e34b1bd060bf2d8fd86
2026-10-13T18:28:22.241Z
来源文件 / 仓库<picture>
<source media="(prefers-color-scheme: dark)" srcset=".github/img/dark.png">
<source media="(prefers-color-scheme: light)" srcset=".github/img/light.png">
<img alt="Druid Starter Kit" src=".github/img/light.png" width="100%">
</picture>
<p align="center">
<a href="https://github.com/druidweb/druid/blob/main/coverage.xml"><img src="https://img.shields.io/badge/dynamic/xml?color=success&label=coverage&query=round%28%2F%2Fcoverage%2Fproject%2Fmetrics%2F%40coveredelements%20div%20%2F%2Fcoverage%2Fproject%2Fmetrics%2F%40elements%20%2A%20100%29&suffix=%25&url=https%3A%2F%2Fraw.githubusercontent.com%2Fdruidweb%2Fdruid%2Fmain%2Fcoverage.xml" alt="Coverage"></a>
<a href="https://github.com/druidweb/druid/actions/workflows/main.yml"><img src="https://img.shields.io/github/actions/workflow/status/druidweb/druid/main.yml?branch=main&label=tests" alt="Build Status"></a>
<a href="https://packagist.org/packages/druidweb/druid"><img src="https://img.shields.io/packagist/dt/druidweb/druid" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/druidweb/druid"><img src="https://img.shields.io/packagist/v/druidweb/druid" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/druidweb/druid"><img src="https://img.shields.io/packagist/l/druidweb/druid" alt="License"></a>
</p>
# Druid Starter Kit
The most comprehensive and battle-tested Laravel + Vue starter kit available. Built with modern best practices, complete testing coverage, and production-ready tooling to accelerate your development from day one. Features cutting-edge technologies like Laravel 13, Inertia 3, Vue 3 with TypeScript, Tailwind 4, and a complete CI/CD pipeline with automated testing and deployment.
Unlike other starter kits that give you a basic setup and leave you to figure out the rest, Druid provides a complete development ecosystem. Every component is tested, every workflow is automated, and every decision has been made with scalability and maintainability in mind. From comprehensive testing with Pest and Vitest to automated semantic releases, this isn't just a starter kit, it's a complete foundation for building production applications that can grow with your business.
> **Druid includes all Laravel Jetstream and Fortify features** - Teams, API tokens, profile management, two-factor authentication, browser sessions, password reset, email verification, and more - rebuilt from the ground up with Vue 3, TypeScript, and 100% test coverage.
## Features
### Core Stack
- 🚀 [Laravel 13](https://laravel.com) - Latest Laravel with PHP 8.5+ support
- ⚡️ [Vue 3](https://vuejs.org) with [Vite](https://vitejs.dev) and SSR support
- 🧩 [Shadcn-Vue](https://www.shadcn-vue.com) - Beautiful, accessible UI components
- 🔧 [TypeScript](https://www.typescriptlang.org) - Full type safety across the stack
- 🎨 [Tailwind 4](https://tailwindcss.com) with dark mode support
- 📱 [Inertia.js 3](https://inertiajs.com) - Modern SPAs with the new v3 adapter and resolver API
### Authentication & Security (Fortify + Jetstream Features)
- 🔐 **Two-Factor Authentication** - TOTP-based 2FA with recovery codes
- 🔑 **API Token Management** - Personal access tokens with granular permissions
- 👥 **Team Management** - Create teams, invite members, assign roles
- 📧 **Team Invitations** - Email-based invitations with signed URLs
- 🖼️ **Profile Photos** - User avatar uploads with automatic storage
- 📋 **Browser Sessions** - View and logout other active sessions
- 🗑️ **Account Deletion** - Self-service deletion with confirmation
- 📜 **Terms & Privacy Policy** - Legal document pages with agreement tracking
- 🔒 **Password Reset** - Secure email-based password recovery
- ✉️ **Email Verification** - Verified email enforcement
- 🔄 **Password Confirmation** - Sensitive action protection
- 🛡️ [Laravel Fortify](https://laravel.com/docs/fortify) - Backend authentication scaffolding
- 🔒 [Laravel Sanctum](https://laravel.com/docs/sanctum) - Cookie and token-based API auth
### Developer Experience
- 🧪 [Pest PHP](https://pestphp.com) - Elegant testing with 100% code coverage
- ⚡️ [Vitest](https://vitest.dev) - Lightning-fast JavaScript unit testing
- 🔍 [Larastan](https://github.com/larastan/larastan) - Static analysis at max level
- 🤖 [Laravel PAO](https://github.com/laravel/pao) - Agent-optimized output for Pest, PHPStan, and Paratest so AI assistants can read test results cleanly
- 📝 [ESLint](https://eslint.org) + [Prettier](https://prettier.io) - Consistent code style
- 🔄 Automated semantic releases with conventional commits
- 👷 GitHub Actions CI/CD with parallel testing
- 💯 100% code coverage with automated badge reporting
## Feature Configuration
All Jetstream-equivalent features are configurable in `config/teams.php`:
```php
'features' => [
Features::termsAndPrivacyPolicy(), // Terms of Service & Privacy Policy pages
Features::profilePhotos(), // User profile photo uploads
Features::api(), // API token management
Features::teams(['invitations' => true]), // Teams with email invitations
Features::accountDeletion(), // Self-service account deletion
],
```
Simply remove any feature from the array to disable it. The UI automatically adapts to show only enabled features.
## Requirements
- PHP 8.5 or higher
- Composer 2+
- Node.js 24+ (preferably Bun)
- SQLite / MySQL / PostgreSQL
## Installation
First, ensure you have the Laravel installer v5.14+ installed globally:
```bash
composer global require laravel/installer
```
Then create a new Laravel application using this starter kit:
```bash
laravel new my_app --using=druidweb/druid
```
For more information about Laravel starter kits, please refer to the [Laravel documentation](https://laravel.com/docs/13.x/starter-kits).
## Development
```bash
# Update all dependencies
bun run cb
# Start development server
composer dev
# Build for production
bun run build
# Format code
composer lint
# Run PHP static, type, and feature tests
composer test
# Run JavaScript tests --currently 89% coverage
bun run test
```
## Maintenance Branches
This starter kit follows semantic versioning using maintenance branches:
- `main` - Latest development version
- `N.x` - Maintenance branches for major versions (e.g., `1.x`, `2.x`)
---
## Contributing
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](https://github.com/druidweb/druid/security/policy) on how to report security vulnerabilities.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

sage
WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and block editor support
Laravel · 启动器

wave
Wave - The Software as a Service Starter Kit, designed to help you build the SAAS of your dreams 🚀 💰
Laravel · SaaS

filament-starter
A beautiful starting point for your next TALL stack project using Filament. ⚡
Laravel · 启动器

electrik
Laravel SaaS starter kit: auth, teams, Stripe billing, and Slate 3 — Composer package for Laravel 12
Laravel · SaaS

php-saas
The everything-included starter kit for your next idea
Laravel · SaaS

filament-jetstream
A Laravel starter kit built with Filament inspired by Jetstream.
Laravel · 启动器
