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

ActiveLibrary[Admin Panels](/categories/admin)

pelletiermaxime/laravel-scaffold-admin
======================================

Commands to generate scaffolding for an admin CRUD.

17CSS

Since Feb 16Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

:package\_name
==============

[](#package_name)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6d367f8ddfb0147a0c1991cfe46287dd42f75c7d6a514931b965d578fa4f449b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70656c6c65746965726d6178696d652f6c61726176656c2d73636166666f6c642d61646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pelletiermaxime/laravel-scaffold-admin)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/92bd46462b138e2f981d6f7415c565d997fd04ac2375c587987b0e679c502475/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f70656c6c65746965726d6178696d652f6c61726176656c2d73636166666f6c642d61646d696e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pelletiermaxime/laravel-scaffold-admin)[![Coverage Status](https://camo.githubusercontent.com/9d39c8f438387a0da69b44f603d2ec43133d9f6593974fe53490a713a7e4a812/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f70656c6c65746965726d6178696d652f6c61726176656c2d73636166666f6c642d61646d696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/pelletiermaxime/laravel-scaffold-admin/code-structure)[![Quality Score](https://camo.githubusercontent.com/f927948a30ba1c5eefffb6d5c185ac102b24a2e2dcdf79e27eab73d6e8e173a5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f70656c6c65746965726d6178696d652f6c61726176656c2d73636166666f6c642d61646d696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/pelletiermaxime/laravel-scaffold-admin)[![Total Downloads](https://camo.githubusercontent.com/858f13d1145dd190259a25316f2313fd307ede52a280a00251cb69aceb9ae3ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70656c6c65746965726d6178696d652f6c61726176656c2d73636166666f6c642d61646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pelletiermaxime/laravel-scaffold-admin)

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

[](#installation)

Via Composer

```
$ composer require pelletiermaxime/laravel-scaffold-admin
$ php artisan vendor:publish
```

Usage
-----

[](#usage)

### Scaffold everything (migration, model, controller, routes and views)

[](#scaffold-everything-migration-model-controller-routes-and-views)

```
php artisan scaffold-admin:generate  Scaffold an admin CRUD

name : Name of the model
--fields= : Comma-separated list of fields in the format COLUMN_NAME:COLUMN_TYPE.
```

Examples:

```
php artisan scaffold-admin:generate Posts
```

will generate the file `app/Http/Controllers/Admin/PostsController.php` with a `PostsController` class, generate a route for /admin/posts in routes.php, generate an empty model Posts, generate a migration file with the default values (an ID and the timestamp fields) and generate CRUD views.

### Scaffold a Controller

[](#scaffold-a-controller)

```
php artisan scaffold-admin:controller  Scaffold an admin controller for a model

name : Name of the associated model
--controller-name=$modelController : Controller name. Defaults to name of the model followed by Controller
--no-route : Disable the default route appended to your routes.php file.
```

Examples:

```
php artisan scaffold-admin:controller Posts
```

will generate the file `app/Http/Controllers/Admin/PostsController.php` with a `PostsController` class.

```
php artisan scaffold-admin:controller Posts --controller-name=Posts
```

will generate the file `app/Http/Controllers/Admin/Posts.php` with a `Posts` class.

### Scaffold a Migration file

[](#scaffold-a-migration-file)

```
php artisan scaffold-admin:migration   Scaffold a migration file.

name : Name of the migration
--fields= : Comma-separated list of fields in the format COLUMN_NAME:COLUMN_TYPE.
```

Behind the scene this command uses the great package laracasts/generators. Have a look at [the documentation for detailed examples.](https://github.com/laracasts/Laravel-5-Generators-Extended#migrations-with-schema)

Examples:

```
php artisan scaffold-admin:migration create_posts_table --fields="name:string"
```

### Scaffold a Model file

[](#scaffold-a-model-file)

```
php artisan scaffold-admin:model       Scaffold a model class.

name : Name of the model
```

Examples:

```
php scaffold-admin:model Posts
```

### Scaffold a View file

[](#scaffold-a-view-file)

```
php artisan scaffold-admin:view        Scaffold the views for a model

name : Name of the view
```

Examples:

```
php artisan scaffold-admin:view posts
```

will generate the file `resources/views/admin/posts/index.blade.php` and all the layout files for AdminLTE.

Don't forget to publish the assets (php artisan vendor:publish) to publish all the css/js necessary for AdminLTE.

Change log
----------

[](#change-log)

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

Credits
-------

[](#credits)

- [Maxime Pelletier](https://github.com/pelletiermaxime)

Thanks to the following packages for the inspiration :

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/1801684?v=4)[Maxime Pelletier](/maintainers/pelletiermaxime)[@pelletiermaxime](https://github.com/pelletiermaxime)

---

Top Contributors

[![pelletiermaxime](https://avatars.githubusercontent.com/u/1801684?v=4)](https://github.com/pelletiermaxime "pelletiermaxime (19 commits)")

### Embed Badge

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

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

PHPackages © 2026

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