Laravel后台启动器

filament-jet — Laravel 后台模板

作者 ArtMin96

Filament Jet 是面向 Filament 后台的认证起始套件,提供登录、注册、邮箱验证、双因素认证、会话管理、个人数据导出与 Sanctum API 令牌等实现。

看看你的网站会是什么样

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

1 个预览视图
作者提供的预览
作者提供的预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

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

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

值得关注的模板亮点

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

01

为 Filament 应用提供登录、注册、邮箱验证与双因素认证的起始实现

02

个人资料管理包含更新姓名邮箱、修改密码、浏览器会话登出、删除账号与个人数据导出

03

安装时使用 --teams 选项可启用团队创建、成员、邀请与角色管理

04

基于 Laravel Sanctum 提供 API 令牌生成与权限设置

05

功能以 config/filament-jet.php 中的 feature 开关组织,可按需启用或禁用

06

采用 MIT 许可,允许免费使用、修改、商用与分发该版本代码

模板详细介绍

Filament Jet 是 ArtMin96 维护的 Laravel 包,为 Filament 应用提供认证相关的起始实现。它通过 Composer 安装并执行 `php artisan filament-jet:install` 命令完成脚手架搭建,安装后需要构建 NPM 依赖并迁移数据库。README 明确提示:将其安装到已有的 Filament 应用中可能导致意外行为与问题,因此更适合作为新项目的起点。

功能以可开关的 feature 形式组织在 `config/filament-jet.php` 中,可按需注释启用或禁用。认证部分覆盖登录、注册、邮箱验证与双因素认证;登录页可配置卡片宽度、品牌显示与速率限制。个人资料管理通过右上角用户菜单进入,支持更新姓名、邮箱、可选头像、修改密码、启用双因素认证、查看并登出其他浏览器会话、删除账号以及下载个人数据副本。

团队功能需在安装时使用 `--teams` 选项启用,包含创建团队、修改团队名称、添加成员、待处理邀请、成员列表、角色管理与删除团队;邀请功能需在 teams 配置中显式开启。API 支持基于 Laravel Sanctum,用户可生成带权限的多个 API 令牌。个人数据导出依赖 spatie/laravel-personal-data-export,可配置额外文件与内容。浏览器会话管理要求会话驱动设为 database。

许可方面,仓库采用 MIT 许可,允许免费使用、修改、商用与分发该版本代码,分发时需保留版权声明与完整许可声明;演示图片、字体、图标等第三方素材需单独核对许可,域名、托管、数据库等外部服务可能另行收费。

Laravel后台启动器

适合你的项目吗?

适用场景

  • 新建 Filament 后台项目时快速搭建认证与账号管理界面
  • 需要为 Filament 应用加入双因素认证与恢复码功能
  • 需要让用户管理多个 API 令牌并分配权限
  • 需要团队创建、成员邀请与角色管理的后台场景
  • 需要提供个人数据导出或账号删除入口以配合数据合规

适合人群

  • 正在启动新 Filament 应用并需要认证脚手架的开发者
  • 需要双因素认证、会话管理或 API 令牌功能的后台项目
  • 需要团队与邀请管理能力的 Filament 应用
  • 接受以配置文件开关方式裁剪功能的 Laravel 项目

上手与定制指南

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

  1. 1

    通过 composer require artmin96/filament-jet 安装,随后执行 php artisan filament-jet:install

  2. 2

    安装后运行 npm run dev、npm run build 并执行 php artisan migrate

  3. 3

    需将 config/filament.php 中的登录页指向 Filament Jet 的 Login::class

  4. 4

    不要将本包安装到已有的 Filament 应用,README 提示可能导致意外行为与问题

  5. 5

    浏览器会话管理要求会话驱动(SESSION_DRIVER)设置为 database

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • README 警告:将本包安装到已有的 Filament 应用中可能导致意外行为与问题,因此更适合作为新项目的起点,而非在现有 Filament 项目上叠加使用。
  • 浏览器会话管理功能要求会话驱动(SESSION_DRIVER)必须设置为 database,否则该功能无法正常使用。
  • 个人数据导出功能依赖第三方包 spatie/laravel-personal-data-export,使用该功能需引入此外部依赖。
  • 双因素认证需用户使用 TOTP 应用(如 Google Authenticator)扫码,并建议用密码管理器(如 1Password)保存恢复码,涉及外部应用与账号。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Attempting to install Filament Jet into an existing Filament application may result in unexpected behavior and issues.

README 原文

To utilize browser session management within Filament Jet, ensure that your session configuration's `driver` (or `SESSION_DRIVER` environment variable) is set to 'database'.

README 原文

This uses the [spatie/laravel-personal-data-export](https://github.com/spatie/laravel-personal-data-export) package.

README 原文

they should scan the given QR code using a free TOTP authenticator application such as Google Authenticator. In addition, they should store the listed recovery codes in a secure password manager such as [1Password](https://1password.com/).

README 原文
https://github.com/ArtMin96/filament-jet/blob/main/LICENSE.mdhttps://github.com/ArtMin96/filament-jet/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2023-11-03
截图检查日期
2026-10-02

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 73affb52666bf1a03ede3ef4d4260e72b20c61d3d7844530f46577b98ace3069

2026-10-02T14:44:33.465Z

来源文件 / 仓库
# FilamentJet

[![Latest Version on Packagist](https://img.shields.io/packagist/v/artmin96/filament-jet.svg?style=flat-square)](https://packagist.org/packages/artmin96/filament-jet)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/artmin96/filament-jet/run-tests?label=tests)](https://github.com/artmin96/filament-jet/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/artmin96/filament-jet/Check%20&%20fix%20styling?label=code%20style)](https://github.com/artmin96/filament-jet/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/artmin96/filament-jet.svg?style=flat-square)](https://packagist.org/packages/artmin96/filament-jet)

![Filament Jet cover art](./art/banner.png)

Filament Jet is a authentication starter kit for [Filament](https://github.com/filamentphp/filament) and provides the perfect starting point for your next [Filament](https://github.com/filamentphp/filament) application. Filament Jet provides the implementation for your application's login, registration, email verification, two-factor authentication, session management, personal data export, API via Laravel Sanctum, and optional team management features.

Switchable team             |  User menu
:--------------------------:|:-------------------------:
![Filament Jet switchable team art](./art/switchable-team.png)  |  ![Filament Jet user menu art](./art/user-menu.png)

## Installation

> **Warning**
> Attempting to install Filament Jet into an existing Filament application may result in unexpected behavior and issues.

You can install the package via composer:

```bash
composer require artmin96/filament-jet
```

After installing the Filament Jet package, you may execute the following Artisan command.

```bash
php artisan filament-jet:install
```

In addition, you may use the `--teams` switch to enable team support.

After installing Filament Jet, you should install and build your NPM dependencies and migrate your database:

```bash
npm run dev

npm run build

php artisan migrate
```

Optionally, you can publish the views using

```bash
php artisan vendor:publish --tag="filament-jet-views"
```

Update the `config/filament.php` to point to the Filament Jet's `Login::class`.

```php
'auth' => [
    'guard' => env('FILAMENT_AUTH_GUARD', 'web'),
    'pages' => [
        'login' => \ArtMin96\FilamentJet\Filament\Pages\Auth\Login::class,
    ],
],
```

You may want to change the size of the auth card.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::login([
        'card_width' => 'md',
    ]),
],
```

Show/hide brand.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::login([
        'has_brand' => true,
    ]),
],
```

Full config for login.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::login([
        'card_width' => 'md',
        'has_brand' => true,
        'rate_limiting' => [
            'enabled' => true,
            'limit' => 5,
        ],
        'pipelines' => [],
    ]),
],
```

## Profile Management

Filament Jet's profile management features are accessed by the user using the top-right user profile navigation dropdown menu. Filament Jet actions that allow the user to update their name, email address, and, optionally, their profile photo.

![Filament Jet profile information art](./art/profile-information.png)
![Filament Jet update password art](./art/update-password.png)
![Filament Jet two factor art](./art/two-factor.png)
![Filament Jet two factor finish enabling art](./art/two-factor-finish-enabling.png)
![Filament Jet two factor enabled art](./art/two-factor-enabled.png)
![Filament Jet two factor secret codes hidden art](./art/two-factor-secret-codes-hidden.png)
![Filament Jet browser sessions art](./art/browser-sessions.png)
![Filament Jet delete account art](./art/delete-account.png)
![Filament Jet download information art](./art/download-information.png)
![Filament Jet download information ready art](./art/download-information-ready.png)

You may want to disable the `updateProfileInformation` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::updateProfileInformation(),
],
```

### Enabling Profile Photos

If you wish to allow users to upload custom profile photos, you must enable the feature in your application's `config/filament-jet.php` configuration file. To enable the feature, simply uncomment the corresponding feature entry from the `features` configuration item within this file:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::profilePhotos(),
],
```

Follow the link for more information: [Jetstream Profile Management](https://jetstream.laravel.com/2.x/features/profile-management.html)

### Password Update

You may want to disable the `updatePasswords` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::updatePasswords([
    //     ...
    // ]),
],
```

You may want to update the password without filling in the current password.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::updatePasswords([
        'askCurrentPassword' => false,
    ]),
],
```

### Two Factor Authentication

When a user enables two-factor authentication for their account, they should scan the given QR code using a free TOTP authenticator application such as Google Authenticator. In addition, they should store the listed recovery codes in a secure password manager such as [1Password](https://1password.com/).

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::twoFactorAuthentication([
        'authentication' => [
            'session_prefix' => 'filament.',
            'card_width' => 'md',
            'has_brand' => true,
            'rate_limiting' => [
                'enabled' => true,
                'limit' => 5,
            ],
        ],
        'confirm' => true,
        'toggleRecoveryCodesVisibilityWithConfirmPassword' => true,
        // 'window' => 0,
    ]),
],
```

You may want to disable the `twoFactorAuthentication` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::twoFactorAuthentication([
    //     ...
    // ]),
],
```

You may want to toggle recovery codes visibility without password confirmation:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::twoFactorAuthentication([
        // ...
        'toggleRecoveryCodesVisibilityWithConfirmPassword' => false,
    ]),
],
```

### Browser Sessions

This feature utilizes Laravel's built-in `Illuminate\Session\Middleware\AuthenticateSession` middleware to safely log out other browser sessions that are authenticated as the current user.

> **Note**
> To utilize browser session management within Filament Jet, ensure that your session configuration's `driver` (or `SESSION_DRIVER` environment variable) is set to 'database'.

You may want to disable the `logoutOtherBrowserSessions` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::logoutOtherBrowserSessions(),
],
```

### Delete Account

You may want to disable the `accountDeletion` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::accountDeletion(),
],
```

### Download Your Information

You can download a copy of your information from your profile. Once your files are available, you can download them to your device.

You may want to disable the `personalDataExport` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::personalDataExport([
    //    'export-name' => 'personal-data',
    //    'add' => [
            // ['nameInDownload' => '', 'content' => []]
    //    ],
    //    'add-files' => [
            // ['pathToFile' => '', 'diskName' => '', 'directory' => '']
    //    ],
    // ]),
],
```

- `add`: the first parameter is the name of the file in the inside the zip file. The second parameter is the content that should go in that file. If you pass an array here, we will encode it to JSON.
- `add-file`: the first parameter is a path to a file which will be copied to the zip. You can also add a disk name as the second parameter.

The `export-name` will only affect the name of the download that will be sent as a response to the user, not the name of the zip stored on disk.

This uses the [spatie/laravel-personal-data-export](https://github.com/spatie/laravel-personal-data-export) package. Follow the link for other information.

## Teams

If you installed Filament Jet using the `--teams` option, your application will be scaffolded to support team creation and management.

### Create Team

![Filament Jet create team art](./art/create-team.png)

### Team Settings

![Filament Jet update team name art](./art/update-team-name.png)
![Filament Jet add team member art](./art/add-team-member.png)
![Filament Jet pending team invitations art](./art/pending-team-invitations.png)
![Filament Jet team members art](./art/team-members.png)
![Filament Jet manage team member role art](./art/manage-team-member-role.png)
![Filament Jet delete team art](./art/delete-team.png)

### Disabling team feature

If you want to disable the team feature, remove this line from the `config/filament-jet.php` config.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::teams([
        'invitations' => false,
        'middleware' => [],
    ]),
],
```

If you want to add other middlewares, fill in the middleware array.

Follow the link for more information: [Jetstream Teams](https://jetstream.laravel.com/2.x/features/teams.html)

### Invitations

By default, Filament Jet will simply add any existing application user that you specify to your team.
To get started, pass the `invitations` option when enabling the "teams" feature for your application. This may be done by modifying the `features` array of your application's `config/filament-jet.php` configuration file.

Follow the link for more information: [Jetstream Teams](https://jetstream.laravel.com/2.x/features/teams.html)

## API

![Filament Jet api token create art](./art/api-token-create.png)
![Filament Jet api token display art](./art/api-token-display.png)
![Filament Jet api token list art](./art/api-token-list.png)
![Filament Jet api token permissions art](./art/api-token-permissions.png)

Laravel Sanctum provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token-based APIs. Sanctum allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities / permissions which specify which actions the tokens are allowed to perform.

### Enabling API Support

If your application will be offering an API that may be consumed by third-parties, you must enable Filament Jet's API feature. To do so, you should uncomment the relevant entry in the `features` configuration option of your application's `config/filament-jet.php` configuration file:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::api(),
],
```

Follow the link for more information: [Jetstream API](https://jetstream.laravel.com/2.x/features/api.html)

## Authentication

### Registration

![Filament Jet register art](./art/register.png)

#### Requiring Terms Of Service / Privacy Policy Approval

Many applications require users to accept their terms of service / privacy policy during registration. Filament Jet allows you to easily enable this requirement for your own application, as well as provides a convenient way of writing these documents using Markdown.

To get started, enable this feature in your application's `config/filament-jet.php` configuration file:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::termsAndPrivacyPolicy(),
],
```

Next, you may write your terms of service / privacy policy documents by modifying your application's `resources/markdown/terms.md` and `resources/markdown/policy.md` files.

#### Disabling Registration Feature

You may want to disable the `registration` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::registration([
    //     'page' => \ArtMin96\FilamentJet\Filament\Pages\Auth\Register::class,
    //     'terms_of_service' => \ArtMin96\FilamentJet\Http\Livewire\TermsOfService::class,
    //     'privacy_policy' => \ArtMin96\FilamentJet\Http\Livewire\PrivacyPolicy::class,
    //     'card_width' => 'md',
    //     'has_brand' => true,
    //     'rate_limiting' => [
    //         'enabled' => true,
    //         'limit' => 5,
    //     ],
    // ]),
],
```

### Login

![Filament Jet login art](./art/login.png)

### Reset Password

![Filament Jet reset password art](./art/reset-password.png)
![Filament Jet reset password sent art](./art/reset-password-sent.png)
![Filament Jet reset password update art](./art/reset-password-update.png)

#### Disabling Reset Password Feature

You may want to disable the `resetPasswords` feature by adding a comment.

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    // Features::resetPasswords([
    //     'request' => [
    //         'page' => \ArtMin96\FilamentJet\Filament\Pages\Auth\PasswordReset\RequestPasswordReset::class,
    //         'card_width' => 'md',
    //         'has_brand' => true,
    //         'rate_limiting' => [
    //             'enabled' => true,
    //             'limit' => 5,
    //         ],
    //     ],
    //     'reset' => [
    //         'page' => \ArtMin96\FilamentJet\Filament\Pages\Auth\PasswordReset\ResetPassword::class,
    //         'card_width' => 'md',
    //         'has_brand' => true,
    //         'rate_limiting' => [
    //             'enabled' => true,
    //             'limit' => 5,
    //         ],
    //     ],
    // ]),
],
```

### Two Factor Challenge

![Filament Jet two factor code art](./art/two-factor-code.png)
![Filament Jet two factor recovery-code art](./art/two-factor-recovery-code.png)

### Extending and Overriding Components

All pages within the auth flow are full-page Livewire components made to work with Filament Forms. So you can easily extend any component to add your own fields and actions.

You may want to change the registration component:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
     Features::registration([
        'page' => \ArtMin96\FilamentJet\Filament\Pages\Auth\Register::class,
        'terms_of_service' => \ArtMin96\FilamentJet\Http\Livewire\TermsOfService::class,
        'privacy_policy' => \ArtMin96\FilamentJet\Http\Livewire\PrivacyPolicy::class,
        'card_width' => 'md',
        'has_brand' => true,
        'rate_limiting' => [
            'enabled' => true,
            'limit' => 5
        ],
    ]),
],
```

You may want to change the terms of service or privacy policy component:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::registration([
        // ...
        'terms_of_service' => YourTermsOfServiceComponent::class,
        'privacy_policy' => YourPrivacyPolicyComponent::class,
        // ...
    ]),
],
```

You may want to change the reset password pages:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::resetPasswords([
        'request' => [
            'page' => \ArtMin96\FilamentJet\Filament\Pages\Auth\PasswordReset\RequestPasswordReset::class,
            // ...
        ],
        'reset' => [
            'page' => \ArtMin96\FilamentJet\Filament\Pages\Auth\PasswordReset\ResetPassword::class,
            // ...
        ],
    ]),
],
```

### Email Verification

To get started, verify that your `App\Models\User` model implements the `Illuminate\Contracts\Auth\MustVerifyEmail` contract

```php
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable implements MustVerifyEmail
{
    // ...
}
```

Filament Jet includes support for requiring that a newly registered user verify their email address. However, support for this feature is disabled by default. To enable this feature, you should uncomment the relevant entry in the `features` configuration item of your application's `config/filament-jet.php` configuration file:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::emailVerification([
        // ...
    ]),
],
```

You may want to change the verification checker page or email verification controller:

```php
use ArtMin96\FilamentJet\Features;

'features' => [
    Features::emailVerification([
        'page' => \ArtMin96\FilamentJet\Filament\Pages\Auth\EmailVerification\EmailVerificationPrompt::class,
        'controller' => \ArtMin96\FilamentJet\Http\Controllers\Auth\EmailVerificationController::class,
        'card_width' => 'md',
        'has_brand' => true,
        'rate_limiting' => [
            'enabled' => true,
            'limit' => 5
        ],
    ]),
],
```

## Usage

The `filament-jet` configuration file contains a `features` configuration array where you can enable or disable the feature you want.

## Testing

```bash
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

## Security Vulnerabilities

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

## Credits

- [Arthur Minasyan](https://github.com/ArtMin96)
- [All Contributors](../../contributors)

This package was inspired by a package by [Laravel's jetstream](https://github.com/laravel/jetstream).

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
反馈内容错误

看看同类模板

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