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

ActiveLibrary

matedon/laravel-admin
=====================

Administrative interface builder for Laravel PHP Framework which can help you build CRUD backends just with few lines of code.

020PHP

Since Aug 7Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-admin
=============

[](#laravel-admin)

[![Build Status](https://camo.githubusercontent.com/3fd2300392e0266fdfa6b4b0e0e52c25240ecda6a26395fd99f58dcf4d9745f5/68747470733a2f2f7472617669732d63692e6f72672f7a2d736f6e672f6c61726176656c2d61646d696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/z-song/laravel-admin)[![StyleCI](https://camo.githubusercontent.com/a884703496d92dbe83d1105d4d51d9d64b48aa6b75c65b5f7487c67fa43d3bc7/68747470733a2f2f7374796c6563692e696f2f7265706f732f34383739363137392f736869656c64)](https://styleci.io/repos/48796179)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a711e17693a2ea5f7e522e8bcd326075b6c9f85cd132c2d5248bf7bcb1984acf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a2d736f6e672f6c61726176656c2d61646d696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/z-song/laravel-admin/?branch=master)[![Packagist](https://camo.githubusercontent.com/29292fba16dfeed1c8f5db48384d07047c0bcfc8dfa52e6fdd479b199aa1ecbc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d617465646f6e2f6c61726176656c2d61646d696e2e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/matedon/laravel-admin)[![Total Downloads](https://camo.githubusercontent.com/494f96be92e048a4caa04dbce8b528b3cdef19ed60a3e96335e80ff2dcb15bcb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617465646f6e2f6c61726176656c2d61646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matedon/laravel-admin)

This project based on the job of [z-song/laravel-admin](https://github.com/z-song/laravel-admin)

The `laravel-admin` is an administrative interface builder for Laravel PHP Framework which can help you build CRUD backends just with few lines of code.

Z-song admin has a [Demo](http://120.26.143.106/admin) use `username/password:admin/admin`

Inspired by [SleepingOwlAdmin](https://github.com/sleeping-owl/admin) and [rapyd-laravel](https://github.com/zofe/rapyd-laravel).

Screenshots
-----------

[](#screenshots)

[![laravel-admin](https://cloud.githubusercontent.com/assets/1479100/19625297/3b3deb64-9947-11e6-807c-cffa999004be.jpg)](https://cloud.githubusercontent.com/assets/1479100/19625297/3b3deb64-9947-11e6-807c-cffa999004be.jpg)

Installation
------------

[](#installation)

First, install laravel, and make sure that the database connection settings are correct.

```
Laravel 5.2
composer require matedon/laravel-admin "dev-master"

Laravel 5.3
composer require matedon/laravel-admin "1.3.x-dev"

Laravel 5.1
composer require matedon/laravel-admin "1.1.x-dev"

```

In`config/app.php`add`ServiceProvider`:

```
MAteDon\Admin\Providers\AdminServiceProvider::class

```

Then run these commands to finnish install：

```
php artisan vendor:publish --tag=laravel-admin
php artisan admin:install

```

open `http://localhost/admin/` in browser,use username `admin` and password `admin` to login.

Default Settings
----------------

[](#default-settings)

The file in `config/admin.php` contains an array of settings, you can find the default settings in there.

Documentation
-------------

[](#documentation)

- [quick start](/docs/en/quick-start.md)
- [router](/docs/en/router.md)
- [menu](/docs/en/menu.md)
- [layout](/docs/en/layout.md)
- [model-grid](/docs/en/model-grid.md)
- [model-form](/docs/en/model-form.md)
- [widgets](/docs/en/widgets/table.md)
    - [table](/docs/en/widgets/table.md)
    - [form](/docs/en/widgets/form.md)
    - [box](/docs/en/widgets/box.md)
    - [info-box](/docs/en/widgets/info-box.md)
    - [tab](/docs/en/widgets/box.md)
    - [carousel](/docs/en/widgets/carousel.md)
    - [collapse](/docs/en/widgets/collapse.md)
    - charts TODO
- [RBAC](/docs/en/permission.md)

Directory structure
-------------------

[](#directory-structure)

After install,you can find directory`app/Admin`,and then most of our develop work is under this directory.

```

app/Admin
├── Controllers
│   ├── ExampleController.php
│   └── HomeController.php
└── routes.php

```

`app/Admin/routes.php` is used to define routes，for more detail please read [routes](/docs/zh/router.md).

The `app/Admin/Controllers` directory is used to store all the controllers, The `HomeController.php` file under this directory is used to handle home request of admin,The `ExampleController.php` file is a controller example.

Quick start
-----------

[](#quick-start)

We use `users` table come with `Laravel` for example,the structure of table is:

```
CREATE TABLE `users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
```

And the model for this table is `App\User.php`

You can follow these steps to setup `CURD` interfaces of table `users`:

#### 1.add controller

[](#1add-controller)

Use the following command to create a controller for `App\User` model

```
php artisan admin:make UserController --model=App\\User
```

The above command will create the controller in `app/Admin/Controllers/UserController.php`.

#### 2.add route

[](#2add-route)

Add a route in `app/Admin/routes.php`：

```
$router->resource('users', UserController::class);

```

#### 3.add left menu item

[](#3add-left-menu-item)

Open `http://localhost:8000/admin/auth/menu`, add menu link and refresh the page, then you can find a link item in left menu bar.

#### 4.build grid and form

[](#4build-grid-and-form)

The rest needs to be done is open `app/Admin/Contollers/UserController.php`, find `form()` and `grid()` method and write few lines of code with `model-grid` and `model-form`，for more detail, please read [model-grid](/docs/en/model-grid.md) and [model-form](/docs/en/model-form.md).

Other
-----

[](#other)

`laravel-admin` based on thses plugins or services:

- [Laravel](https://laravel.com/)
- [AdminLTE](https://almsaeedstudio.com/)
- [Bootstrap Markdown](http://toopay.github.io/bootstrap-markdown/)
- [Datetimepicker](http://eonasdan.github.io/bootstrap-datetimepicker/)
- [CodeMirror](https://codemirror.net/)
- [font-awesome](http://fontawesome.io)
- [moment](http://momentjs.com/)
- [Google map](https://www.google.com/maps)
- [Tencent map](http://lbs.qq.com/)
- [bootstrap-fileinput](https://github.com/kartik-v/bootstrap-fileinput)
- [jquery-pjax](https://github.com/defunkt/jquery-pjax)
- [Nestable](http://dbushell.github.io/Nestable/)
- [noty](http://ned.im/noty/)

License
-------

[](#license)

`laravel-admin` is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/384aa45d32a19483c90d76f4b778499f29b11608bb2f23680cf2716de933d1a3?d=identicon)[matedon](/maintainers/matedon)

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (768 commits)")[![langeuh](https://avatars.githubusercontent.com/u/5647964?v=4)](https://github.com/langeuh "langeuh (16 commits)")[![axyr](https://avatars.githubusercontent.com/u/345155?v=4)](https://github.com/axyr "axyr (11 commits)")[![jonphipps](https://avatars.githubusercontent.com/u/12743?v=4)](https://github.com/jonphipps "jonphipps (9 commits)")[![antranapp](https://avatars.githubusercontent.com/u/478757?v=4)](https://github.com/antranapp "antranapp (4 commits)")[![RunnerLee](https://avatars.githubusercontent.com/u/7436388?v=4)](https://github.com/RunnerLee "RunnerLee (4 commits)")[![xqbumu](https://avatars.githubusercontent.com/u/6274534?v=4)](https://github.com/xqbumu "xqbumu (4 commits)")[![smartymoon](https://avatars.githubusercontent.com/u/12489528?v=4)](https://github.com/smartymoon "smartymoon (3 commits)")[![slava-vishnyakov](https://avatars.githubusercontent.com/u/817931?v=4)](https://github.com/slava-vishnyakov "slava-vishnyakov (3 commits)")[![zxy198717](https://avatars.githubusercontent.com/u/785333?v=4)](https://github.com/zxy198717 "zxy198717 (2 commits)")[![Ladel](https://avatars.githubusercontent.com/u/1684244?v=4)](https://github.com/Ladel "Ladel (1 commits)")[![chenlixin93](https://avatars.githubusercontent.com/u/22536294?v=4)](https://github.com/chenlixin93 "chenlixin93 (1 commits)")[![limen](https://avatars.githubusercontent.com/u/3460683?v=4)](https://github.com/limen "limen (1 commits)")[![oele-dev](https://avatars.githubusercontent.com/u/1950715?v=4)](https://github.com/oele-dev "oele-dev (1 commits)")[![avifatal](https://avatars.githubusercontent.com/u/12430740?v=4)](https://github.com/avifatal "avifatal (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![wuwenbao](https://avatars.githubusercontent.com/u/12627022?v=4)](https://github.com/wuwenbao "wuwenbao (1 commits)")[![Fisiu](https://avatars.githubusercontent.com/u/33876?v=4)](https://github.com/Fisiu "Fisiu (1 commits)")[![hayeah](https://avatars.githubusercontent.com/u/50120?v=4)](https://github.com/hayeah "hayeah (1 commits)")[![ForLing](https://avatars.githubusercontent.com/u/200440060?v=4)](https://github.com/ForLing "ForLing (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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