PHPackages                             mattoid/laravel-layui-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. mattoid/laravel-layui-admin

ActiveLibrary[Admin Panels](/categories/admin)

mattoid/laravel-layui-admin
===========================

基于 Laravel, Layui 构建的 RBAC 后台管理系统。

070PHP

Since Jul 15Pushed 5y agoCompare

[ Source](https://github.com/Mattoids/laravel-layui-admin)[ Packagist](https://packagist.org/packages/mattoid/laravel-layui-admin)[ RSS](/packages/mattoid-laravel-layui-admin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-layui-admin
===================

[](#laravel-layui-admin)

基于 Laravel, Layui 构建的 RBAC 基础后台管理系统。

> 如果你想要 vue 版本的后台系统， 移步 [moell/mojito ](https://github.com/moell-peng/mojito)

截图
--

[](#截图)

[![laravel-layui-admin.png](https://camo.githubusercontent.com/dfefc2b262c0ddaffb04c0400361263a00e33c2678a3949007bdbda484adc83f/687474703a2f2f626c6f672d696d6167652e6d6f656c6c2e636e2f6c61726176656c2d6c617975692d61646d696e2e706e67)](https://camo.githubusercontent.com/dfefc2b262c0ddaffb04c0400361263a00e33c2678a3949007bdbda484adc83f/687474703a2f2f626c6f672d696d6167652e6d6f656c6c2e636e2f6c61726176656c2d6c617975692d61646d696e2e706e67)

要求
--

[](#要求)

- 最低支持 laravel5.8 , 支持 6.0

安装
--

[](#安装)

首先安装laravel, 并且确保你配置了正确的数据库连接。

```
composer require moell/laravel-layui-admin

```

然后运行下面的命令来发布资源和配置:

```
php artisan laravel-layui-admin:install

```

在`config/auth.php`中添加相应的 guards 和 providers，如下：

```
    'guards' => [
        ...
        'admin' => [
            'driver' => 'session',
            'provider' => 'admin'
        ]
    ],

    'providers' => [
        ...
        'admin' => [
            'driver' => 'eloquent',
            'model' => \Moell\LayuiAdmin\Models\AdminUser::class,
        ]
    ],

```

在 `app/Http/Kernel.php` 中 $routeMiddleware 属性添加路由中间`admin.permission` 和替换 auth 中间件：

```
class Kernel extends HttpKernel
{
    protected $routeMiddleware = [
    	//'auth' => \App\Http\Middleware\Authenticate::class,
        'auth' => \Moell\LayuiAdmin\Http\Middleware\Authenticate::class,
        ...
        'admin.permission' => \Moell\LayuiAdmin\Http\Middleware\Authenticate::class,
    ];
}

```

执行数据迁移，数据填充

```
php artisan migrate

php artisan db:seed --class="Moell\LayuiAdmin\Database\LayuiAdminTableSeeder"

```

登录

url:

email:

password: secret

依赖开源软件
------

[](#依赖开源软件)

- Laravel
- Layui
- spatie/laravel-permission

License
-------

[](#license)

Apache License Version 2.0 see

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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