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

ActiveLibrary[Admin Panels](/categories/admin)

gavande/laravel-admin
=====================

laravel admin

v1.3.2(9y ago)18MITPHPPHP &gt;=5.6.4

Since Jan 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gavande/laravel-admin)[ Packagist](https://packagist.org/packages/gavande/laravel-admin)[ Docs](https://github.com/z-song/laravel-admin)[ RSS](/packages/gavande-laravel-admin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (7)Versions (27)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/d4ff71f8211d95aa1a9acdb9f4ab84d12061332b4ff68b913fca8834b29e66f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e636f72652f6c61726176656c2d61646d696e2e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/encore/laravel-admin)[![Total Downloads](https://camo.githubusercontent.com/1a6d8373e4616160cbe4b85b964047c7aea98a51c0dace718e6b166b354a9cdd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e636f72652f6c61726176656c2d61646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/encore/laravel-admin)

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

[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).

[中文文档](/docs/zh/README.md)

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.1
composer require encore/laravel-admin "1.1.*"

Laravel 5.2
composer require encore/laravel-admin "1.2.*"

Laravel 5.3
composer require encore/laravel-admin "1.3.*"

```

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

```
Encore\Admin\Providers\AdminServiceProvider::class

```

Then run these commands to publish assets and config：

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

```

After run command you can find config file in `config/admin.php`, in this file you can change the install directory,db connection or table names.

At last run following command to finish install.

```
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)
    - [Row actions](/docs/en/model-grid-actions.md)
    - [Extend column](/docs/en/model-grid-column.md)
    - [Custom tools](/docs/en/grid-custom-tools.md)
- [Model-form](/docs/en/model-form.md)
    - [Form fields](/docs/en/model-form-fields.md)
    - [Image/File upload](/docs/en/form-upload.md)
    - [Field management](/docs/en/field-management.md)
    - [Form callbacks](/docs/en/model-form-callback.md)
- [Model-tree](/docs/en/model-tree.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
├── bootstrap.php
└── routes.php

```

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

`app/Admin/bootstrap.php` is bootstrapper for laravel-admin, more usages see comments inside it.

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

// under windows use:
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 following plugins or services:

- [Laravel](https://laravel.com/)
- [AdminLTE](https://almsaeedstudio.com/)
- [Datetimepicker](http://eonasdan.github.io/bootstrap-datetimepicker/)
- [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/)
- [toastr](http://codeseven.github.io/toastr/)
- [X-editable](http://github.com/vitalets/x-editable)
- [bootstrap-number-input](https://github.com/wpic/bootstrap-number-input)
- [fontawesome-iconpicker](https://github.com/itsjavi/fontawesome-iconpicker)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 95.1% 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 ~16 days

Recently: every ~3 days

Total

23

Last Release

3391d ago

PHP version history (3 changes)1.1.0PHP &gt;=5.4.0

1.1.x-devPHP &gt;=5.5.9

v1.3.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/d36190d0a31102f4a6a32752b3ee8b63a73aea7170c78fbe0844e04d56898514?d=identicon)[gavande](/maintainers/gavande)

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (292 commits)")[![axyr](https://avatars.githubusercontent.com/u/345155?v=4)](https://github.com/axyr "axyr (11 commits)")[![chenlixin93](https://avatars.githubusercontent.com/u/22536294?v=4)](https://github.com/chenlixin93 "chenlixin93 (1 commits)")[![elinxer](https://avatars.githubusercontent.com/u/7327251?v=4)](https://github.com/elinxer "elinxer (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![xqbumu](https://avatars.githubusercontent.com/u/6274534?v=4)](https://github.com/xqbumu "xqbumu (1 commits)")

---

Tags

laravelgridformadminchart

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[printnow/laravel-admin

Dcat admin 永久分叉版 / 支持 Laravel 12, PHP 版本限制 &gt;= 8.1（支持 PHP 8.4）

432.0k](/packages/printnow-laravel-admin)

PHPackages © 2026

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