Laravel启动器

jetstream-flux-livewire — Laravel 启动器模板

作者 EhsanGhafoori

Laravel Jetstream 的 Livewire-only 分支,将 Blade 视图替换为 Flux UI 组件,并升级到 Livewire 4 与 Tailwind CSS 4,后端认证、团队与 API 逻辑保持与上游 Jetstream 一致。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-14查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Livewire-only 分支:移除 Inertia/Vue 技术栈,仅保留 Livewire 脚手架

02

Blade 视图替换为 Flux UI 组件,改编自 jetstream-flux 项目

03

前端升级为 Livewire 4 与 Tailwind CSS 4,使用 @tailwindcss/vite 配置

04

认证、团队、API 令牌等后端逻辑与上游 Jetstream 保持一致

05

沿用 php artisan jetstream:install 安装命令,支持 teams、api、verification、dark、google、pest 等选项

06

包名与命名空间保持 Laravel\Jetstream,可视为同命名空间下的替代安装包

模板详细介绍

这是一个由 Ehsan Ghafoori 维护的 Laravel Jetstream 分支,只保留 Livewire 技术栈,移除了 Inertia/Vue 相关脚手架。它把 Jetstream 原有的 Blade 视图替换为 Flux UI 组件(改编自 jetstream-flux 项目),并采用 Livewire 4、Tailwind CSS 4 与 @tailwindcss/vite 的前端工具链。README 明确说明认证、授权、团队逻辑与后端行为与上游 Jetstream 保持一致,未重写认证流程或团队授权;变更范围限于界面呈现与前端工具。安装通过 php artisan jetstream:install 命令完成,支持 --teams、--api、--verification、--dark、--google、--pest 等选项。使用前需要 PHP 8.2+、Laravel 11/12/13、Node.js 20.19+ 或 22.12+,以及 Flux 许可证,因为 livewire/flux 需要 Composer 认证。README 未提供性能、生产就绪程度或长期维护承诺方面的说明。

Laravel启动器

适合你的项目吗?

适用场景

  • 希望继续使用 Jetstream 的团队、API 令牌、双因素认证与个人资料管理功能,但需要 Livewire 4 与 Tailwind 4 的项目
  • 偏好 Jetstream 架构与安全模型,同时希望界面使用 Flux UI 组件的开发者
  • 新建 Laravel 项目并计划采用 Livewire-only 技术栈、不需要 Inertia 或 Vue 的场景
  • 已有 Jetstream 应用希望评估迁移到 Livewire 4 + Tailwind 4 + Flux UI 的团队(README 建议按迁移项目处理)

适合人群

  • 使用 Laravel 11、12 或 13 并满足 PHP 8.2+ 的项目
  • 已持有 Flux 许可证、可配置 Composer 认证的开发者
  • 需要 Jetstream 功能集但不需要 Inertia/Vue 脚手架的团队
  • 愿意接受该分支仅修改界面与前端工具、后端行为与上游一致的开发者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    通过 composer require ehsanghafoori/jetstream-flux-livewire 安装;若未发布到 Packagist,可在 composer.json 中添加 GitHub VCS 仓库

  2. 2

    在项目根目录创建 auth.json 配置 composer.fluxui.dev 的 HTTP Basic 认证,使用 Flux 许可证邮箱与密钥,且不要提交该文件

  3. 3

    运行 php artisan jetstream:install,按需附加 --teams、--api、--verification、--dark、--google、--pest 等选项

  4. 4

    执行 npm install、npm run build 与 php artisan migrate 完成前端构建与数据库迁移

  5. 5

    访问 /register 创建用户后进入 /dashboard 验证安装;从官方 laravel/jetstream 迁移时 README 建议先备份并在分支上重新安装脚手架

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 使用 livewire/flux 需要 Flux 许可证,并需在 Composer 中配置认证凭据,属于付费/授权依赖。
  • 需在项目根目录创建 auth.json 配置 Flux 的 Composer HTTP Basic 认证,且不应提交该文件。
  • 必须从 fluxui.dev 获取 Flux 许可证才能安装使用。
  • 使用 --google 选项时依赖第三方包 websitinu/laravel-socialite-google-one-tap,并需配置 Google One Tap 登录。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

- [Flux license](https://fluxui.dev) — `livewire/flux` requires Composer authentication

README 原文

Create or update `auth.json` in your **project root** (never commit this file):

README 原文

Get your license at [fluxui.dev](https://fluxui.dev).

README 原文

| `--google` | Google One Tap login (requires [websitinu/laravel-socialite-google-one-tap](https://packagist.org/packages/websitinu/laravel-socialite-google-one-tap)) |

README 原文
https://github.com/EhsanGhafoori/jetstream-flux-livewire/blob/master/LICENSE.mdhttps://github.com/EhsanGhafoori/jetstream-flux-livewire/blob/master/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-14。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 80 / 100
技术栈
Laravel
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-06-02
截图检查日期
2026-10-14

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Laravel。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15

查看当时使用的来源资料

SHA-256: 72d0d651ca32f42ace6ea2d58bbbcc97ac38d1db1ed72e0365fdfe79de216e77

2026-10-14T08:15:48.427Z

来源文件 / 仓库
# Jetstream Flux Livewire

A **Livewire-only** fork of [Laravel Jetstream](https://github.com/laravel/jetstream) that ships with **Livewire 4**, **Tailwind CSS 4**, and **[Flux UI](https://fluxui.dev)** views.

Maintained by [Ehsan Ghafoori](https://github.com/EhsanGhafoori).

---

## Why this package exists

[Laravel Jetstream](https://github.com/laravel/jetstream) is a mature, battle-tested authentication and team-management scaffold. Laravel’s newer [Starter Kits](https://laravel.com/starter-kits) are the recommended path for **new** greenfield apps.

Many teams still want **Jetstream’s feature set** (teams, API tokens, 2FA, profile management) on a **modern stack**:

| Need | Official Jetstream (5.x) | This package |
|------|------------------------|--------------|
| Livewire 4 | Livewire 3 | **Livewire 4** |
| Tailwind CSS 4 | Tailwind 3 | **Tailwind 4** |
| Flux UI views | Default Tailwind components | **Flux UI** |
| Inertia / Vue stack | Supported | **Removed** (Livewire only) |

There was no maintained, official Jetstream release that combined **Livewire 4 + Tailwind 4 + Flux UI** in one installable package. This fork fills that gap for developers who prefer Jetstream’s architecture and security model on a current frontend stack.

---

## Security & scope of changes

**This fork is intentionally conservative.** Authentication, authorization, team logic, and backend behaviour remain aligned with upstream Jetstream.

### What we did **not** change

The following are **unchanged from Laravel Jetstream** (same responsibilities, same security model):

- **Authentication** — still powered by [Laravel Fortify](https://github.com/laravel/fortify) (login, registration, 2FA, password reset, email verification)
- **Livewire component logic** — `src/Http/Livewire/*` (profile, teams, API tokens, sessions)
- **Controllers & routes** — `src/Http/Controllers/Livewire/*`, `routes/livewire.php`
- **Team system** — roles, permissions, invitations, policies, actions, events
- **Database migrations** — users, teams, tokens, 2FA columns
- **Middleware** — session authentication, password confirmation
- **Core package API** — `Jetstream`, `Features`, traits (`HasTeams`, `HasProfilePhoto`), contracts

You get the **same Jetstream backend** you already trust. We did not rewrite auth flows or team authorization.

### What we **did** change (presentation & tooling only)

| Area | Change |
|------|--------|
| **Blade views** | Replaced with Flux UI components ([adapted from jetstream-flux](https://github.com/grpaiva/jetstream-flux)) |
| **CSS / Vite** | Tailwind 4 CSS-first setup + `@tailwindcss/vite` |
| **Install command** | Requires Livewire 4, Flux 2, Tailwind 4 npm packages |
| **Stack** | Inertia / Vue stack removed — Livewire only |

**Summary:** UI and frontend tooling updates only. No custom auth logic, no bypass of Fortify or Sanctum, no changes to how teams or permissions work.

---

## Requirements

- PHP 8.2+
- Laravel 11, 12, or 13
- Node.js 20.19+ (or 22.12+) for Vite 8 builds
- [Flux license](https://fluxui.dev) — `livewire/flux` requires Composer authentication

---

## Installation

### 1. Require the package

From [Packagist](https://packagist.org/packages/ehsanghafoori/jetstream-flux-livewire):

```bash
composer require ehsanghafoori/jetstream-flux-livewire
```

If the package is not yet on Packagist, add the GitHub repository to your app's `composer.json` instead:

```json
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/EhsanGhafoori/jetstream-flux-livewire"
        }
    ],
    "require": {
        "ehsanghafoori/jetstream-flux-livewire": "^1.0"
    }
}
```

### 2. Configure Flux (Composer)

Create or update `auth.json` in your **project root** (never commit this file):

```json
{
    "http-basic": {
        "composer.fluxui.dev": {
            "username": "[email protected]",
            "password": "your-flux-license-key"
        }
    }
}
```

Get your license at [fluxui.dev](https://fluxui.dev).

### 3. Run the Jetstream installer

```bash
php artisan jetstream:install
```

**Common options:**

```bash
# Teams + API + email verification
php artisan jetstream:install --teams --api --verification

# Google One Tap login on auth pages
php artisan jetstream:install --google

# Everything together
php artisan jetstream:install --teams --api --verification --google

# Dark mode + Pest tests
php artisan jetstream:install --teams --dark --pest
```

| Option | Description |
|--------|-------------|
| `--teams` | Team management |
| `--api` | Sanctum API tokens |
| `--verification` | Email verification (Fortify) |
| `--dark` | Dark mode classes in views |
| `--google` | Google One Tap login (requires [websitinu/laravel-socialite-google-one-tap](https://packagist.org/packages/websitinu/laravel-socialite-google-one-tap)) |
| `--pest` | Install Pest test stubs |

### 4. Frontend & database

```bash
npm install
npm run build
php artisan migrate
```

### 5. Register & test

Visit `/register`, create a user, then open `/dashboard`.

---

## What you get after install

- Flux-styled auth pages (login, register, 2FA challenge, etc.)
- Flux navigation header and mobile sidebar
- Profile, team, and API token management UIs
- Tailwind 4 + Vite configuration
- Livewire 4 + Flux 2 registered via Composer

---

## Differences from official Jetstream

1. **Livewire stack only** — no Inertia, Vue, or SSR scaffolding.
2. **Modern frontend** — Livewire 4, Tailwind 4, Flux UI.
3. **Same install command** — `php artisan jetstream:install` (no stack argument).
4. **Drop-in replacement** — same namespace (`Laravel\Jetstream`), same Fortify/Sanctum integration.

Official Jetstream remains the right choice if you need Inertia or Laravel’s default Starter Kits. Use **this package** if you want **Jetstream + Livewire 4 + Tailwind 4 + Flux**.

---

## Upgrading from official `laravel/jetstream`

This is a **separate package** (`ehsanghafoori/jetstream-flux-livewire`), not an in-place upgrade of `laravel/jetstream`.

For **new projects**, require this package instead of `laravel/jetstream` and run `jetstream:install`.

For **existing Jetstream apps**, treat it as a migration project: back up first, compare published views and config, then reinstall scaffolding on a branch.

---

## Reporting issues

Security concerns about **Jetstream core behaviour** should still be reported to [laravel/jetstream](https://github.com/laravel/jetstream/security).

For issues specific to **Flux views**, **Tailwind 4 setup**, or **Livewire 4 compatibility** in this fork:

[github.com/EhsanGhafoori/jetstream-flux-livewire/issues](https://github.com/EhsanGhafoori/jetstream-flux-livewire/issues)

---

## Credits

| Project | Role |
|---------|------|
| [Laravel Jetstream](https://github.com/laravel/jetstream) | Core auth, teams, API, Livewire logic — MIT |
| [jetstream-flux](https://github.com/grpaiva/jetstream-flux) | Flux UI Blade views — MIT |
| [Livewire Flux](https://fluxui.dev) | UI component library |
| [Ehsan Ghafoori](https://github.com/EhsanGhafoori) | Fork maintenance — Livewire 4 / Tailwind 4 / installer updates |

---

## License

MIT — see [LICENSE.md](LICENSE.md).

Copyright (c) Taylor Otwell — original Jetstream  
Copyright (c) Ehsan Ghafoori — fork modifications
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。