PHPackages                             goszowski/crud-generator-admin-lte - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. goszowski/crud-generator-admin-lte

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

goszowski/crud-generator-admin-lte
==================================

Laravel 5 CRUD Generator for AdminLTE

129318PHP

Since Mar 20Pushed 9y ago2 watchersCompare

[ Source](https://github.com/goszowski/crud-generator-admin-lte)[ Packagist](https://packagist.org/packages/goszowski/crud-generator-admin-lte)[ RSS](/packages/goszowski-crud-generator-admin-lte/feed)WikiDiscussions master Synced 2mo 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/4af85ff6b436c63f01de1f0037ffc5fe95b8886d0bb6d0654c808d3448578d11/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f637275642d67656e657261746f722d61646d696e2d6c74652f642f746f74616c2e737667)](https://packagist.org/packages/goszowski/crud-generator-admin-lte)[![Latest Stable Version](https://camo.githubusercontent.com/f7bcc3249bb867792f7e0a76ccb816e0b3bf9e5d3ddaee79468df4f1d7065c82/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f637275642d67656e657261746f722d61646d696e2d6c74652f762f737461626c652e737667)](https://packagist.org/packages/goszowski/crud-generator-admin-lte)[![Latest Unstable Version](https://camo.githubusercontent.com/eb22b3d941cf64b38ad8bcf757b24f7842b9b088329c2a8b86cc3d0aa1d978fb/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f637275642d67656e657261746f722d61646d696e2d6c74652f762f756e737461626c652e737667)](https://packagist.org/packages/goszowski/crud-generator-admin-lte)[![License](https://camo.githubusercontent.com/ccda14afb4f13014e3cfd970a7024594f4719be9ced2de0f4d9fd6220ceee81a/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f637275642d67656e657261746f722d61646d696e2d6c74652f6c6963656e73652e737667)](https://packagist.org/packages/goszowski/crud-generator-admin-lte)

### Requirements

[](#requirements)

```
Laravel >=5.1
PHP >= 5.5.9

```

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

[](#installation)

1. Edit your project's composer.json file to require "goszowski/crud-generator-admin-lte"

    ```
    "require": {
      "goszowski/crud-generator-admin-lte": "dev-master",
    }

    ```
2. Run

    ```
    composer update

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

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

        Goszowski\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="Goszowski\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="Goszowski\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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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/df76ecb70f503e8a34cfd32327d30918ca5abf085aa6da749bdc1edd1546f096?d=identicon)[goszowski](/maintainers/goszowski)

---

Top Contributors

[![goszowski](https://avatars.githubusercontent.com/u/10208931?v=4)](https://github.com/goszowski "goszowski (12 commits)")[![alexeydemin](https://avatars.githubusercontent.com/u/6114701?v=4)](https://github.com/alexeydemin "alexeydemin (2 commits)")

### Embed Badge

![Health badge](/badges/goszowski-crud-generator-admin-lte/health.svg)

```
[![Health](https://phpackages.com/badges/goszowski-crud-generator-admin-lte/health.svg)](https://phpackages.com/packages/goszowski-crud-generator-admin-lte)
```

PHPackages © 2026

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