集成 Spatie 角色与权限系统,菜单项按权限控制可见性
livecoat — Laravel 启动器模板
作者 developerabdan
Livecoat 是一个基于 Laravel 的启动器模板,将 Livewire 与 BasecoatUI 组件结合,内置认证、权限、用户与角色管理、动态菜单和系统设置等后台常用模块。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置 TOTP 双因素认证与 Google reCAPTCHA v2 登录保护
使用 Livewire 构建交互组件,配合 BasecoatUI 界面组件
提供用户、角色、个人资料与系统设置等后台管理模块
动态菜单支持分组、子菜单、路由高亮和 Lucide 图标
支持深色/浅色主题切换并检测系统偏好
模板详细介绍
Livecoat 是面向 Laravel 后端开发者的启动器模板,目标是把后台应用常见的重复搭建工作提前完成。它把 Livewire 的响应式组件与 BasecoatUI 的界面组件组合在一起,并集成 Spatie 角色与权限系统、TOTP 双因素认证、Google reCAPTCHA v2 以及深色/浅色主题切换。
模板自带用户管理、角色管理、个人资料编辑、系统设置面板和基于权限控制的动态菜单。菜单支持分组、子菜单、当前路由高亮和 Lucide 图标,文本接入 Laravel 翻译系统。安装流程覆盖克隆仓库、安装 Composer 与 NPM 依赖、配置 .env 与数据库、执行迁移和填充数据,然后启动开发服务器。
使用前需要留意:README 的路线图仍将“完全可复用的 Basecoat 组件、多语言支持、高级日志、测试、文档”列为待办,说明这些方面在仓库中尚未完成或未提供。项目要求 PHP 8.2+、Composer、Node.js 与 NPM,数据库使用 MySQL 或 PostgreSQL,Redis 为可选。
适合你的项目吗?
适用场景
- 需要快速搭建带权限控制的后台管理面板
- 希望以 Livewire 而非前端框架构建交互界面的 Laravel 项目
- 需要用户、角色、权限和系统设置等基础模块的起步项目
- 想直接使用 BasecoatUI 组件风格的后台界面
适合人群
- 熟悉 Laravel 与 Livewire 的后端开发者
- 需要后台权限与用户管理基础的项目
- 接受以启动器模板为起点继续开发新功能
- 环境满足 PHP 8.2+、Composer、Node.js 与 NPM 的团队
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后执行 composer install、npm install 和 npm run build
- 2
复制 .env.example 为 .env 并运行 php artisan key:generate
- 3
在 .env 中配置 MySQL 或 PostgreSQL 数据库连接信息
- 4
执行 php artisan migrate --seed 完成建表与初始数据填充
- 5
运行 php artisan serve 与 npm run dev 启动开发环境
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 使用需自备 MySQL 或 PostgreSQL 数据库;Redis 为可选但推荐用于缓存。
- 登录保护依赖 Google reCAPTCHA v2,需自行申请并配置 Google 的 reCAPTCHA 密钥,属于外部服务。
- 双因素认证依赖 pragmRX 相关实现,启用后用户需使用 TOTP 验证器应用完成登录。
- 运行环境要求 PHP 8.2+、Composer、Node.js 与 NPM,需自行准备这些工具链。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
- MySQL or PostgreSQL - Redis (Optional) (recommended for caching)
README 原文
- **Google reCAPTCHA v2** - Protect your logins from bots
README 原文
- **TOTP Authenticator** - Built-in two-factor authentication using pragmRX
README 原文
https://github.com/developerabdan/livecoat/blob/master/LICENSEhttps://github.com/developerabdan/livecoat/blob/master/README.md- PHP 8.2+ - Composer - Node.js & NPM
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 83 / 100
- 技术栈
- Laravel
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-05-21
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Laravel。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 56d94ef1fbb13bd40aa9e5822c7e689d021b1c058ee6ac6596c86a7257876e2b
2026-10-03T07:44:04.035Z
来源文件 / 仓库# Livecoat Starter Kit
[](https://opensource.org/licenses/MIT)
[](https://laravel.com)
[](https://laravel-livewire.com)
[](https://basecoatui.com)
⚡ **A powerful Laravel starter kit combining Livewire with BasecoatUI.com for rapid application development**
Livecoat is a comprehensive starter template designed for backend developers who want to kickstart their Laravel applications with modern UI components and essential features built-in. No more wasting time on repetitive setup tasks - focus on building your unique features from day one.
## 🚀 Features
### 🔐 Authentication & Security
- **TOTP Authenticator** - Built-in two-factor authentication using pragmRX
- **Google reCAPTCHA v2** - Protect your logins from bots
- **Role-based Permissions** - Integrated Spatie role and permissions system
### 🎨 User Interface & Experience
- **BasecoatUI Components** - Beautiful, modern UI components (shadcn-inspired)
- **Dark/Light Mode** - Built-in theme switching with system preference detection
- **Responsive Design** - Mobile-first approach with Tailwind CSS
- **Filament 4 Support** - Component-based integration
### ⚙️ Developer Experience
- **Customizable App Settings** - Easily change app name, version, icon, and logo
- **Livewire 3+** - Reactive UI components without writing JavaScript
- **Laravel 12+** - Latest Laravel features and best practices
- **Component Architecture** - Reusable, maintainable code structure
### 🛠️ Built-in Tools
- **User Management** - Complete user CRUD operations
- **Role Management** - Flexible role and permission system
- **Profile Management** - User profile editing with avatar support
- **Settings Panel** - Application configuration interface
- **Dynamic Menu System** - Hierarchical navigation with permission-based access control
### 🎯 Built-in Menu Structure
The starter kit includes a comprehensive menu system with the following structure:
```php
$menu = [
[
'group' => __('General'),
'items' => [
[
'title' => __('Dashboard'),
'icon' => 'lucide-home',
'route' => route('app.dashboard'),
'active' => request()->routeIs('app.dashboard'),
'permission' => 'View Dashboard'
],
[
'title' => __('User Access'),
'icon' => 'lucide-user',
'route' => route('app.user'),
'active' => request()->routeIs('app.user'),
'permission' => 'View Users'
],
[
'title' => __('Settings'),
'icon' => 'lucide-settings',
'active' => request()->routeIs('app.settings.*'),
'sub' => [
[
'title' => __('Permission Groups'),
'route' => route('app.settings.permission-group'),
'active' => request()->routeIs('app.settings.permission-group'),
'permission' => 'View Permission Groups'
],
[
'title' => __('Permissions'),
'route' => route('app.settings.permission'),
'active' => request()->routeIs('app.settings.permission'),
'permission' => 'View Permissions'
],
[
'title' => __('Roles'),
'route' => route('app.settings.role'),
'active' => request()->routeIs('app.settings.role'),
'permission' => 'View Roles'
],
[
'title' => __('System Settings'),
'route' => route('app.settings.system-setting'),
'active' => request()->routeIs('app.settings.system-setting'),
'permission' => 'View System Settings'
],
],
],
],
],
];
```
**Menu Features:**
- **Permission-based visibility** - Items only show if user has required permissions
- **Active state detection** - Automatic highlighting of current page
- **Hierarchical structure** - Support for nested submenus
- **Icon integration** - Uses Lucide icons via blade-lucide-icons package
- **Internationalization ready** - All text supports Laravel's translation system
## 📋 Requirements
- PHP 8.2+
- Composer
- Node.js & NPM
- MySQL or PostgreSQL
- Redis (Optional) (recommended for caching)
## 🛠️ Installation
1. **Clone the repository**
```bash
git clone https://github.com/developerabdan/livecoat.git
cd livecoat
```
2. **Install dependencies**
```bash
composer install
npm install
npm run build
```
3. **Environment setup**
```bash
cp .env.example .env
php artisan key:generate
```
4. **Configure your database**
```bash
# Edit .env file with your database credentials
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_password
```
5. **Run migrations and seed**
```bash
php artisan migrate --seed
```
6. **Start the development server**
```bash
php artisan serve
npm run dev
```
7. **Visit your application**
```
http://localhost:8000
```
## ⚙️ Configuration
### Role & Permissions
The starter kit comes with a pre-configured role system:
- **Super Admin**: Full system access
Add custom roles and permissions through the admin panel or programmatically:
```php
// Create a new role
$role = Role::create(['name' => 'moderator']);
// Assign permissions
$role->givePermissionTo(['edit-posts', 'delete-comments']);
```
## 🎯 Usage Examples
### Creating a New Livewire Component
```bash
php artisan make:livewire UserProfile
```
This creates:
- `app/Livewire/UserProfile.php`
- `resources/views/livewire/user-profile.blade.php`
## 🤝 Contributing
We welcome contributions! Here's how you can help:
1. **Fork the repository**
2. **Create a feature branch** (`git checkout -b feature/amazing-feature`)
3. **Commit your changes** (`git commit -m 'Add amazing feature'`)
4. **Push to the branch** (`git push origin feature/amazing-feature`)
5. **Open a Pull Request**
## 📝 Roadmap
- [ ] Fully Reusable Basecoat Components
- [ ] Multi-language support
- [ ] Advanced logging
- [ ] Testing
- [ ] Documentation
## 🙏 Acknowledgments
- **[Laravel](https://laravel.com)** - The PHP framework for web artisans
- **[Livewire](https://laravel-livewire.com)** - Dynamic interfaces without JavaScript
- **[BasecoatUI](https://basecoatui.com)** - Beautiful UI components
- **[Spatie](https://spatie.be)** - Excellent Laravel packages
- **[Google2Fa](https://github.com/antonioribeiro/google2fa)** - TOTP authentication library
- **[Filament](https://filamentphp.com)** - Elegant admin panels
- **[Blade Lucide Icons](https://github.com/mallardduck/blade-lucide-icons)** - Lucide icon components for Blade
## 📄 License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## ⭐ Show Your Support
If you find this starter kit helpful, please consider:
- **⭐ Starring this repository** - It helps more developers discover it
- **🐛 Reporting issues** - Help us improve by reporting bugs
- **💡 Suggesting features** - Share your ideas for improvements
- **📢 Sharing with others** - Spread the word about Livecoat
---
**Made with ❤️ for the Laravel community**
Built by backend developers, for backend developers. Stop wasting time on boilerplate and start building amazing applications today.看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 启动器
