PHPackages                             bluecode/laravel-generator - 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. bluecode/laravel-generator

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

bluecode/laravel-generator
==========================

Laravel Generator

174697PHP

Since Sep 1Pushed 8y ago6 watchersCompare

[ Source](https://github.com/matmaxanh/laravel-generator)[ Packagist](https://packagist.org/packages/bluecode/laravel-generator)[ RSS](/packages/bluecode-laravel-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Resource Generator (Laravel5.4)
=======================================

[](#laravel-resource-generator-laravel54)

[![Codacy Badge](https://camo.githubusercontent.com/d41bd9a3bc9a160e2947470cd6257908c2abdfdb67e9f50a6c01a4a6881b3a91/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6437306233346636613038313434663138643864656464366461393266316462)](https://www.codacy.com/app/matmaxanh/laravel-generator?utm_source=github.com&utm_medium=referral&utm_content=matmaxanh/laravel-generator&utm_campaign=badger)[![Latest Stable Version](https://camo.githubusercontent.com/4790bc78ed0a097368396d316ccea2e1c1c20ccd43e8c272e2140f8f24b89b92/68747470733a2f2f706f7365722e707567782e6f72672f626c7565636f64652f6c61726176656c2d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/bluecode/laravel-generator)[![Total Downloads](https://camo.githubusercontent.com/b1158463f11ec8f864e68caf208b15343b43f2def14a8888305841bdcdd85a45/68747470733a2f2f706f7365722e707567782e6f72672f626c7565636f64652f6c61726176656c2d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/bluecode/laravel-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/abb90c0bd68d0921a3c9dc0c823e486287277d58a5660c406bb2aadc6ae71bdf/68747470733a2f2f706f7365722e707567782e6f72672f626c7565636f64652f6c61726176656c2d67656e657261746f722f762f756e737461626c65)](https://packagist.org/packages/bluecode/laravel-generator)[![License](https://camo.githubusercontent.com/0fdad3fd461a676b7917a085b525290e8bbba2b32e2fe05109a95b7a87de4a32/68747470733a2f2f706f7365722e707567782e6f72672f626c7565636f64652f6c61726176656c2d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/bluecode/laravel-generator)

This package extend make laravel command to use custom template. Further more, add some new command as generate mvc, create new package.

Documentation is in process...
==============================

[](#documentation-is-in-process)

Documentation
-------------

[](#documentation)

1. [Installation](#installation)
2. [Publish](#publish)
3. [Generator Command](#generator--command)
4. [Option](#option)

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

[](#installation)

1. Add this package to your composer.json:

```
composer require bluecode/laravel-generator
```

2. Run composer update

```
composer update
```

3. Add the ServiceProviders to the providers array in `config/app.php`

```
Bluecode\Generator\GeneratorServiceProvider::class,
```

As we are using [laravelcollective/html](https://github.com/LaravelCollective/html)as a dependency
so we need to add those ServiceProviders as well.

```
Collective\Html\HtmlServiceProvider::class,
```

Also for convenience, add these facades in alias array in `config/app.php`

```
'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,
```

Publish
-------

[](#publish)

1. Publish configuration file `generator.php`

```
php artisan vendor:publish --tag=laravel-generator.config
```

2. Publish template folder into `resources/vendor/laravel-generator/templates`

```
php artisan vendor:publish --tag=laravel-generator.template
```

Generator Command
-----------------

[](#generator-command)

1. Generate Migration:

```
php artisan gen:migrate MigrationName
```

e.g.

```
php artisan gen:migrate create_posts_table
```

2. Generate Model:

php artisan gen:model ModelName

e.g.

```
php artisan gen:model Post
```

3. Generate Controller

```
php artisan gen:model ModelName
```

e.g.

```
php artisan gen:model Post
```

4. Generate View

```
php artisan gen:view ViewName
```

e.g.

```
php artisan gen:view index
php artisan gen:view create
```

5. Generate MVC:

```
php artisan gen:mvc ModelName
```

e.g.

```
php artisan gen:mvc Post
php artisan gen:mvc Post --actions=index,create,edit
```

6. Generate Package

```
  php artisan gen:package VendorName PackageName
```

e.g.

```
php artisan gen:package Module Post
php artisan gen:package Module Post --path=packages/post
php artisan gen:package Module Post --actions=index,create,edit
```

Option
------

[](#option)

Use --overwrite to overwrite exist file on all command.

Credits
-------

[](#credits)

This Laravel Generator is created by [Bluecode](https://github.com/matmaxanh).

**Bugs &amp; Forks are welcomed :)**

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.6% 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/5b7db7b1058b4ded5ae946c20cb88c608710fa8b048f7c182e4b38142c2fe9c8?d=identicon)[bluecode](/maintainers/bluecode)

---

Top Contributors

[![phamhieu275](https://avatars.githubusercontent.com/u/2704311?v=4)](https://github.com/phamhieu275 "phamhieu275 (39 commits)")[![ruddyoke](https://avatars.githubusercontent.com/u/8771671?v=4)](https://github.com/ruddyoke "ruddyoke (4 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

### Embed Badge

![Health badge](/badges/bluecode-laravel-generator/health.svg)

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

###  Alternatives

[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5244.3M79](/packages/ckeditor-ckeditor)[permafrost-dev/phpcsfixer-preset

shared php-cs-fixer rules &amp; finders preset

226.6k1](/packages/permafrost-dev-phpcsfixer-preset)

PHPackages © 2026

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