PHPackages                             imokhles/generate-crud-command - 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. imokhles/generate-crud-command

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

imokhles/generate-crud-command
==============================

create crud system for guards generated by iMokhles's MultiAuth package

0.1-rc2(6y ago)14[1 PRs](https://github.com/iMokhles/IMGenerateCrudCommand/pulls)MITPHP

Since Apr 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/iMokhles/IMGenerateCrudCommand)[ Packagist](https://packagist.org/packages/imokhles/generate-crud-command)[ RSS](/packages/imokhles-generate-crud-command/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

IMGenerateCrudCommand
=====================

[](#imgeneratecrudcommand)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9460785c769875d6cc897fd14d2bbb6edce470335ae76808e505028c5c60878e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d6f6b686c65732f67656e65726174652d637275642d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imokhles/generate-crud-command)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b5fd520ac3cc3d4255ece487203fbdc5cb0f218246a74f4fc4dfc8d20be91445/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f694d6f6b686c65732f494d47656e657261746543727564436f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/iMokhles/IMGenerateCrudCommand)[![Build Status](https://camo.githubusercontent.com/d14090e4d5545fb87534d00bad1e52b7ce458b4546991ede4f40cd64bb3c72ff/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f694d6f6b686c65732f494d47656e657261746543727564436f6d6d616e642f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iMokhles/IMGenerateCrudCommand/build-status/master)[![Total Downloads](https://camo.githubusercontent.com/5e546e22e1933863c9d1c237636282445f44c9511b5c2f6e9fb3c69103206195/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d6f6b686c65732f67656e65726174652d637275642d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imokhles/generate-crud-command)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

create crud system for guards generated by iMokhles's MultiAuth package

Install
-------

[](#install)

1. In your terminal via composer:

```
composer require imokhles/generate-crud-command
```

2. Add this provider to your config/app.php ( no need for Laravel 5.5 and above ) :

```
iMokhles\IMGenerateCrudCommand\IMGenerateCrudCommandServiceProvider::class

```

3. copy theme files to

```
PROJECT_DIR/public/oneui/*css,js,img,fonts

```

Available themes
----------------

[](#available-themes)

- (NOT AVAILABLE YET) FREE [AdminLTE 2](https://adminlte.io/themes/AdminLTE/index2.html)
- (NOT AVAILABLE YET) FREE [Tabler](https://preview.tabler.io/)
- (NOT AVAILABLE YET) PAID [StartUI](https://themeforest.net/item/startui-premium-bootstrap-4-admin-dashboard-template/15228250?ref=themesanytime)
- (NOT AVAILABLE YET) PAID [HighAdmin](https://themeforest.net/item/highdmin-responsive-bootstrap-4-admin-dashboard/21233941)
- (AVAILABLE) PAID [OneUI](https://themeforest.net/item/oneui-bootstrap-admin-dashboard-template-ui-framework-angularjs/11820082)
- more comes later ( and you are welcome to send me a pull request for more themes )

Theme folder structure
----------------------

[](#theme-folder-structure)

```
.
├── Views ( folder )
│   └── THEME_NAME ( folder )
│        ├── create.blade.stub
│        ├── create_fields.blade.stub
│        ├── edit.blade.stub
│        ├── edit_fields.blade.stub
│        ├── fields
│        │   ├── checkbox.blade.stub
│        │   ├── datepicker.blade.stub
│        │   ├── datetimepicker.blade.stub
│        │   ├── email.blade.stub
│        │   ├── password.blade.stub
│        │   ├── select2.blade.stub
│        │   ├── summernote.blade.stub
│        │   ├── switch.blade.stub
│        │   ├── text.blade.stub
│        │   └── textarea.blade.stub
│        ├── index.blade.stub
│        ├── show.blade.stub
│        ├── show_fields.blade.stub
│        └── table.blade.stub
└── ...

```

Usage
-----

[](#usage)

Example usage:

```
php artisan make:im_crud MODEL_NAME GUARD_NAME --admin_theme="oneui" --model --migration
```

If you already has model and migration don't pass --model --migration options

```
php artisan make:im_crud MODEL_NAME GUARD_NAME --admin_theme="oneui"
```

Add the following to your Model if Model created manually

```
    /**
     * List page index columns
     *
     * @var array
     */
    public static $index_columns = [

    ];

    /**
     * Object creation fields
     *
     * @var array
     */
    public static $create_fields = [

    ];

    /**
     * Object editing fields
     *
     * @var array
     */
    public static $edit_fields = [

    ];

    /**
     * Object showing columns
     *
     * @var array
     */
    public static $show_columns = [

    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [

    ];
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [iMokhles](http://github.com/imokhles)

License
-------

[](#license)

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

[![Beerpay](https://camo.githubusercontent.com/36576b809b7c5981baec5a732fe7a679dcd9c2e24ff39c505e3ce826c4f716f4/68747470733a2f2f626565727061792e696f2f694d6f6b686c65732f494d47656e657261746543727564436f6d6d616e642f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/iMokhles/IMGenerateCrudCommand) [![Beerpay](https://camo.githubusercontent.com/0527895ddda898a27601813864b7fe2a202f44c38710df858ad5385c1006fee1/68747470733a2f2f626565727061792e696f2f694d6f6b686c65732f494d47656e657261746543727564436f6d6d616e642f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/iMokhles/IMGenerateCrudCommand?focus=wish)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2217d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57b8493865caa43e232d5ed05770d2b848e13ee9c39aec0de3f7ebd12dab2882?d=identicon)[iMokhles](/maintainers/iMokhles)

---

Top Contributors

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

---

Tags

laravellaravel-crudlaravel-crud-generatorlaravel-multi-auth-crudlaravel-multiple-crud-generatorlaravellaravel crud generatorlaravel crudlaravel multiauth crudlaravel multi-auth crudlaravel multiple crud generator

### Embed Badge

![Health badge](/badges/imokhles-generate-crud-command/health.svg)

```
[![Health](https://phpackages.com/badges/imokhles-generate-crud-command/health.svg)](https://phpackages.com/packages/imokhles-generate-crud-command)
```

###  Alternatives

[crestapps/laravel-code-generator

An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.

76591.7k1](/packages/crestapps-laravel-code-generator)[mrdebug/crudgen

Create a Laravel Crud in a few seconds

31826.8k](/packages/mrdebug-crudgen)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)

PHPackages © 2026

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