PHPackages                             printnow/laravel-admin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. printnow/laravel-admin

ActiveLibrary[Admin Panels](/categories/admin)

printnow/laravel-admin
======================

Dcat admin 永久分叉版 / 支持 Laravel 10-13, PHP 版本限制 &gt;= 8.1（支持 PHP 8.5）

v2.4.2(1mo ago)462.6k↑43.3%13[2 PRs](https://github.com/PrintNow/dcat-admin/pulls)MITPHPPHP &gt;=8.1CI passing

Since Apr 2Pushed 2w ago3 watchersCompare

[ Source](https://github.com/PrintNow/dcat-admin)[ Packagist](https://packagist.org/packages/printnow/laravel-admin)[ Docs](https://github.com/PrintNow/dcat-admin)[ RSS](/packages/printnow-laravel-admin/feed)WikiDiscussions 2.0 Synced 2d ago

READMEChangelog (6)Dependencies (23)Versions (30)Used By (0)

 [![](resources/dist/images/logo-rectangle.png)](resources/dist/images/logo-rectangle.png)

 [![](https://camo.githubusercontent.com/f7f5295509e08edecc3df1e34d0a1ed6171383eb5e08cd4e42fb52a27c998612/68747470733a2f2f706f7365722e707567782e6f72672f7072696e746e6f772f6c61726176656c2d61646d696e2f762f737461626c65)](https://packagist.org/packages/printnow/laravel-admin) [![](https://camo.githubusercontent.com/b04429c1c36aa31c7bf7fbf414ca10d22184bb6d9977e06cbeb6f7026564c4c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7072696e746e6f772f6c61726176656c2d61646d696e2e737667)](https://packagist.org/packages/printnow/laravel-admin) [![](https://camo.githubusercontent.com/f300edcc6033be521ce9a670a7dfce8478e40b6ec1ffa00ec06c9ee48491ecd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7072696e746e6f772f6c61726176656c2d61646d696e2e737667)](https://packagist.org/packages/printnow/laravel-admin) [![](https://camo.githubusercontent.com/2d6a00cf365801bbe68bd4f86513a7ae89c4f0a71ae7050e39322ccb5d66eeee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e317e382e352d3539613966382e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/2d6a00cf365801bbe68bd4f86513a7ae89c4f0a71ae7050e39322ccb5d66eeee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e317e382e352d3539613966382e7376673f7374796c653d666c6174) [![](https://camo.githubusercontent.com/eeb8450556309f2dde76488add138ae2bb4160a2a0ea24d444993afc0b07785e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31307e31332d3539613966382e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/eeb8450556309f2dde76488add138ae2bb4160a2a0ea24d444993afc0b07785e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31307e31332d3539613966382e7376673f7374796c653d666c6174)

[jqhph/dcat-admin](https://github.com/jqhph/dcat-admin) 的永久维护 fork。原项目已停止维护，本项目持续跟进 Laravel / PHP 新版本兼容、安全修复和功能增强。

兼容性
---

[](#兼容性)

Laravel 10Laravel 11Laravel 12Laravel 13PHP 8.1✅✅✅✅PHP 8.2✅✅✅✅PHP 8.3✅✅✅✅PHP 8.4✅✅✅✅PHP 8.5✅✅✅✅安装
--

[](#安装)

```
composer require printnow/laravel-admin
```

发布资源并完成安装：

```
php artisan admin:publish
php artisan admin:install
```

相较原项目的改动
--------

[](#相较原项目的改动)

### 兼容性修复

[](#兼容性修复)

- **Laravel 13**：修复 `redirect()->with()` 将 `MessageBag` 序列化为数组导致视图报错的问题，引入 `SessionMessage` 值对象替代，兼容 PHP session JSON / PHP 两种序列化模式
- **Laravel 12**：新增支持
- **PHP 8.4 / 8.5**：修复隐式 nullable 参数声明等兼容性问题，最低 PHP 版本提升至 8.1

### 安全修复

[](#安全修复)

- `toastr` 消息输出改用 `json_encode()`，防止单引号 / 反斜杠破坏 JS 语法及潜在 XSS

### 功能增强

[](#功能增强)

- 支持通过 `admin.assets_version` 配置项（或 `ADMIN_ASSETS_VERSION` 环境变量）独立控制 JS/CSS 缓存版本号，不再强制跟随框架版本
- 新增 `Viewable` 列展示类，支持点击眼睛图标切换显示 / 隐藏值
- 新增 `HighlightJs` 组件，支持代码块语法高亮
- 增强枚举（`BackedEnum`）字段的渲染支持
- 支持 `.5` 列宽，如 `col-sm-1.5`
- 优化 HTTPS 站点的资源 URL 生成

### Bug 修复

[](#bug-修复)

- 修复 Grid 以 `LazyRenderable` 渲染时 Group Filter 筛选不生效的问题（[@deflinhec](https://github.com/PrintNow/dcat-admin/commit/4390a8f494c20910828e7c93513d13032f0d01dd)）

文档
--

[](#文档)

功能用法与原项目一致，参考原项目文档：

- [中文文档](https://learnku.com/docs/dcat-admin)
- [English documentation](http://www.dcatadmin.com/docs/en-2.x/quick-start.html)
- [原项目 README（功能特性、扩展、鸣谢）](README.origin.md)

免责声明
----

[](#免责声明)

本项目已通过测试并在实际生产环境中使用，但无法保证所有修改绝对无误，上线前请充分测试。

如果你在使用过程中遇到任何问题，欢迎[提交 Issue](https://github.com/PrintNow/dcat-admin/issues)，感谢每一位反馈和贡献的朋友。

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~3 days

Total

19

Last Release

33d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d7872292c2e55eb538a04bd5b54d7f3282d570441f6bd1df17ce9775de161e6?d=identicon)[PrintNow](/maintainers/PrintNow)

---

Top Contributors

[![jqhph](https://avatars.githubusercontent.com/u/20312339?v=4)](https://github.com/jqhph "jqhph (2716 commits)")[![PrintNow](https://avatars.githubusercontent.com/u/28396104?v=4)](https://github.com/PrintNow "PrintNow (66 commits)")[![laradocs](https://avatars.githubusercontent.com/u/49741756?v=4)](https://github.com/laradocs "laradocs (44 commits)")[![edwinhuish](https://avatars.githubusercontent.com/u/5207925?v=4)](https://github.com/edwinhuish "edwinhuish (32 commits)")[![youyingxiang](https://avatars.githubusercontent.com/u/28653285?v=4)](https://github.com/youyingxiang "youyingxiang (28 commits)")[![shacky](https://avatars.githubusercontent.com/u/6030720?v=4)](https://github.com/shacky "shacky (20 commits)")[![PorygonCN](https://avatars.githubusercontent.com/u/31176914?v=4)](https://github.com/PorygonCN "PorygonCN (9 commits)")[![pianzhou2021](https://avatars.githubusercontent.com/u/97172071?v=4)](https://github.com/pianzhou2021 "pianzhou2021 (9 commits)")[![lilashih](https://avatars.githubusercontent.com/u/55920306?v=4)](https://github.com/lilashih "lilashih (9 commits)")[![Abbotton](https://avatars.githubusercontent.com/u/16308633?v=4)](https://github.com/Abbotton "Abbotton (8 commits)")[![ybid](https://avatars.githubusercontent.com/u/11883973?v=4)](https://github.com/ybid "ybid (7 commits)")[![ihipop](https://avatars.githubusercontent.com/u/423077?v=4)](https://github.com/ihipop "ihipop (6 commits)")[![celaraze](https://avatars.githubusercontent.com/u/31471452?v=4)](https://github.com/celaraze "celaraze (6 commits)")[![xutongle](https://avatars.githubusercontent.com/u/46956076?v=4)](https://github.com/xutongle "xutongle (6 commits)")[![nivin-studio](https://avatars.githubusercontent.com/u/53897000?v=4)](https://github.com/nivin-studio "nivin-studio (6 commits)")[![vagra](https://avatars.githubusercontent.com/u/1576687?v=4)](https://github.com/vagra "vagra (5 commits)")[![SmallRuralDog](https://avatars.githubusercontent.com/u/5151848?v=4)](https://github.com/SmallRuralDog "SmallRuralDog (5 commits)")[![Gelaku](https://avatars.githubusercontent.com/u/18202049?v=4)](https://github.com/Gelaku "Gelaku (4 commits)")[![xiaohuilam](https://avatars.githubusercontent.com/u/6964962?v=4)](https://github.com/xiaohuilam "xiaohuilam (3 commits)")[![xqbumu](https://avatars.githubusercontent.com/u/6274534?v=4)](https://github.com/xqbumu "xqbumu (3 commits)")

---

Tags

dcat-adminlaravellaravel-adminlaravel-packagephplaravelgridformadminlaravel-admindcatdcat admin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/printnow-laravel-admin/health.svg)

```
[![Health](https://phpackages.com/badges/printnow-laravel-admin/health.svg)](https://phpackages.com/packages/printnow-laravel-admin)
```

###  Alternatives

[dcat-plus/laravel-admin

dcat-plus admin

1474.0k10](/packages/dcat-plus-laravel-admin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
