PHPackages                             playnowgames/laracrud - 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. playnowgames/laracrud

ActiveLibrary[Admin Panels](/categories/admin)

playnowgames/laracrud
=====================

Laravel 5 Modular CRUD Generator for AdminLTE

04461PHP

Since Mar 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/PlaynowGames/LaraCrud)[ Packagist](https://packagist.org/packages/playnowgames/laracrud)[ RSS](/packages/playnowgames-laracrud/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 crud-generator-admin-lte
==================================

[](#laravel-5-crud-generator-admin-lte)

CRUD Generator for AdminLTE

[![Total Downloads](https://camo.githubusercontent.com/6505f811c091a0b18f56b5cd972d2a8556c073a2d89dc72f36d4660f5106857f/68747470733a2f2f706f7365722e707567782e6f72672f706c61796e6f7767616d65732f6c617261637275642f646f776e6c6f616473)](https://packagist.org/packages/playnowgames/laracrud)[![Latest Stable Version](https://camo.githubusercontent.com/f0056538942f89ffe25f244a8f1394e3496792957e3cf367bb7608ae8b8e2ed8/68747470733a2f2f706f7365722e707567782e6f72672f706c61796e6f7767616d65732f6c617261637275642f762f737461626c65)](https://packagist.org/packages/playnowgames/laracrud)[![Latest Unstable Version](https://camo.githubusercontent.com/5789b6934edd526f6cb38307a9280330fb38fd50c03cfaff640e9a7f5b1710b4/68747470733a2f2f706f7365722e707567782e6f72672f706c61796e6f7767616d65732f6c617261637275642f762f756e737461626c65)](https://packagist.org/packages/playnowgames/laracrud)[![License](https://camo.githubusercontent.com/6366cab9113a35a188825f93b3b8481b06876cac74fa084c761a376b265d4a10/68747470733a2f2f706f7365722e707567782e6f72672f706c61796e6f7767616d65732f6c617261637275642f6c6963656e7365)](https://packagist.org/packages/playnowgames/laracrud)

### Requirements

[](#requirements)

```
Laravel >=5.1
PHP >= 5.5.9

```

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

[](#installation)

1. Edit your project's composer.json file to require "playnowgames/laracrud"

    ```
    "require": {
      "playnowgames/laracrud": "dev-master",
    }

    ```
2. Run

    ```
    composer update

    ```
3. Add service provider to **/config/app.php** file.

    ```
    'providers' => [
        ...

        PlaynowGames\CrudGeneratorAdminLte\CrudGeneratorAdminLteServiceProvider::class,
    ],
    ```
4. Install **laravelcollective/html** package for form &amp; html.

    - Run

    ```
    composer require laravelcollective/html
    // For laravel 5.1
    composer require laravelcollective/html "5.1.*"

    ```

    - Add service provider &amp; aliases to **/config/app.php** file.

    ```
    'providers' => [
        ...

        Collective\Html\HtmlServiceProvider::class,
    ],

    // Use the lines below for "laravelcollective/html" package otherwise remove it.
    'aliases' => [
        ...

        'Form'      => Collective\Html\FormFacade::class,
        'HTML'      => Collective\Html\HtmlFacade::class,
    ],
    ```
5. Run **composer dump-autoload**
6. Publish config file &amp; generator template files.

    ```
    php artisan vendor:publish --provider="PlaynowGames\CrudGeneratorAdminLte\CrudGeneratorAdminLteServiceProvider::class"

    ```

Note: You should have configured database for this operation.

6. Copy the Admin LTE folder to public path and rename it to "admin-lte"

Commands
--------

[](#commands)

#### Crud command:

[](#crud-command)

```
php artisan crud:generate Posts --fields="title#string, body#text"

```

You can also easily include route, set primary key, set views directory etc through options **--route**, **--pk**, **--view-path** as belows:

```
php artisan crud:generate Posts --fields="title#string#required, body#text#required_with:title|alpha_num" --route=yes --pk=id --view-path="admin" --namespace=Admin --route-group=admin

```

Options:

- --fields : Fields name for the form &amp; model.
- --route : Include Crud route to routes.php? yes or no.
- --pk : The name of the primary key.
- --view-path : The name of the view path.
- --namespace : Namespace of the controller.
- --route-group : Prefix of the route group.

---

---

#### Other commands (optional):

[](#other-commands-optional)

For controller generator:

```
php artisan crud:controller PostsController --crud-name=posts --model-name=Post --view-path="directory" --route-group=admin

```

For model generator:

```
php artisan crud:model Post --fillable="['title', 'body']"

```

For migration generator:

```
php artisan crud:migration posts --schema="title#string, body#text"

```

For view generator:

```
php artisan crud:view posts --fields="title#string, body#text" --view-path="directory" --route-group=admin

```

By default, the generator will attempt to append the crud route to your *routes.php* file. If you don't want the route added, you can use the option `--route=no`.

After creating all resources, run migrate command. *If necessary, include the route for your crud as well.*

```
php artisan migrate

```

If you chose not to add the crud route in automatically (see above), you will need to include the route manually.

```
Route::resource('posts', 'PostsController');
```

### Supported Field Types

[](#supported-field-types)

These fields are supported for migration and view's form:

- string
- char
- varchar
- password
- email
- date
- datetime
- time
- timestamp
- text
- mediumtext
- longtext
- json
- jsonb
- binary
- number
- integer
- bigint
- mediumint
- tinyint
- smallint
- boolean
- decimal
- double
- float

### Custom Generator's Stub Template

[](#custom-generators-stub-template)

You can customize the generator's stub files/templates to achieve your need.

1. Make sure you've published package's assets.

    ```
    php artisan vendor:publish --provider="PlaynowGames\CrudGeneratorAdminLte\CrudGeneratorServiceProvider"

    ```
2. Turn on custom\_template support on **/config/crudgenerator\_admin\_lte.php**

    ```
    'custom_template' => true,

    ```
3. From the directory **/resources/crud-generator-admin-lte/** you can modify or customize the stub files.

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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://www.gravatar.com/avatar/cbe3564ea26d5110cd662a8fe5987fa93044ebe836228c72ff62f576a5c4609a?d=identicon)[PlaynowGames](/maintainers/PlaynowGames)

---

Top Contributors

[![PlaynowGames](https://avatars.githubusercontent.com/u/7050668?v=4)](https://github.com/PlaynowGames "PlaynowGames (1 commits)")

### Embed Badge

![Health badge](/badges/playnowgames-laracrud/health.svg)

```
[![Health](https://phpackages.com/badges/playnowgames-laracrud/health.svg)](https://phpackages.com/packages/playnowgames-laracrud)
```

###  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)
