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

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

tomcath/generator
=================

Extend Laravel's generators scaffold (using the original model path).

7.0.0(5y ago)05MITPHPPHP &gt;=7.0.0

Since Jan 31Pushed 5y agoCompare

[ Source](https://github.com/Catname/generator)[ Packagist](https://packagist.org/packages/tomcath/generator)[ RSS](/packages/tomcath-generator/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (26)Used By (0)

laravel 7.x 使用默认 Model 路径 生成文件
==============================

[](#laravel-7x-使用默认-model-路径-生成文件)

在原版生成器的基础上，修改了 Model 的生成路径，以及一些命名空间的路径。使其可以配合 laravel 原版的 Model 路径使用。

Laravel 5.x Scaffold Generator
==============================

[](#laravel-5x-scaffold-generator)

[![Travis](https://camo.githubusercontent.com/cca4c953df529eecda13110a7559aa87a890cb01d1bb9b51dc712379489ea27a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73756d6d6572626c75652f67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/summerblue/generator)[![Packagist](https://camo.githubusercontent.com/bfc79e1b5855652687a9982d91021b5461ac8b07bba217020ef631378c175482/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756d6d6572626c75652f67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/summerblue/generator)[![Tag](https://camo.githubusercontent.com/d09cbda31b66d5ae926080007a125e9bd131476e77d59773a8140e5f0c7df876/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f73756d6d6572626c75652f67656e657261746f722e737667)](https://github.com/summerblue/generator/tags)

Laravel Scaffold Generator, for Laravel 5.3.

Install
-------

[](#install)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

7.x:

```
composer require "summerblue/generator:7.*" --dev

```

6.x:

```
composer require "summerblue/generator:6.*" --dev

```

5.1 ~ 5.5:

```
composer require "summerblue/generator:~0.5" --dev

```

> = 5.6 (Bootstrap4):

```
composer require "summerblue/generator:~1.0" --dev

```

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

Open `/app/Providers/AppServiceProvider.php` and, to your **register** function, add:

```
public function register()
{
     if (app()->environment() == 'local' || app()->environment() == 'testing') {

        $this->app->register(\Summerblue\Generator\GeneratorsServiceProvider::class);

    }
}

```

### Step 3: Run Artisan!

[](#step-3-run-artisan)

You're all set. Run `php artisan` from the console, and you'll see the new commands `make:scaffold`.

Examples
--------

[](#examples)

Use this command to generator scaffolding of **Project** in your project:

> php artisan make:scaffold Projects --schema="name:string:index,description:text:nullable,subscriber\_count:integer:unsigned:default(0)"

This command will generate:

```
$ php artisan make:scaffold Projects --schema="name:string:index,description:text:nullable,subscriber_count:integer:unsigned:default(0)"

----------- scaffolding: Project -----------

+ ./database/migrations/2017_04_17_065656_create_projects_table.php
+ ./database/factories/ModelFactory.php
+ ./database/seeds/ProjectsTableSeeder.php
+ ./database/seeds/DatabaseSeeder.php (Updated)
x ./app/Models/Model.php (Skipped)
+ ./app/Models/Project.php
+ ./app/Http/Controllers/ProjectsController.php
x ./app/Http/Requests/Request.php (Skipped)
+ ./app/Http/Requests/ProjectRequest.php
+ ./app/Observers/ProjectObserver.php
+ ./app/Providers/AppServiceProvider.php (Updated)
x ./app/Policies/Policy.php
+ ./app/Policies/ProjectPolicy.php
+ ./app/Providers/AuthServiceProvider.php (Updated)
+ ./routes/web.php (Updated)

--- Views ---
   + create_and_edit.blade.php
   + index.blade.php
   + show.blade.php
x ./resources/views/error.blade.php
Migrated: 2017_04_17_065656_create_projects_table

----------- -------------------- -----------
-----------   >DUMP AUTOLOAD<    -----------

```

Explain
-------

[](#explain)

Generate the following:

- Migration
- Seed, add ModelFactory entry, and DatabaseSeeder entry
- Base Model class, Model and helper trait
- Resource Controller
- Base FormRequest class and StoreRequest, UpdateRequest
- Policy and Policy base class, auto register AuthServiceProvider class
- Update routes file to register resource route
- Add error page view
- Create and Edit action share the same view

Future Plan
-----------

[](#future-plan)

- API
- Admin
- Auto fill FormRequest rule
- Auto fill ModelFactory filed

Screenshot
----------

[](#screenshot)

[![file](https://cloud.githubusercontent.com/assets/324764/22488519/7466a638-e84d-11e6-8201-99ad377d6270.png)](https://cloud.githubusercontent.com/assets/324764/22488519/7466a638-e84d-11e6-8201-99ad377d6270.png)

Thanks to
---------

[](#thanks-to)

- [laralib/l5scaffold](https://github.com/laralib/l5scaffold)
- [summerblue/generator](https://github.com/summerblue/generator)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 85.2% 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 ~53 days

Recently: every ~146 days

Total

25

Last Release

2117d ago

Major Versions

0.6.0 → 1.0.02018-12-23

1.0.0 → 6.02019-09-19

6.0.2 → 7.0.02020-07-31

PHP version history (2 changes)0.1PHP &gt;=5.4.0

0.5.9PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/db020c6e74ddbd1bfd034c3009e4c34cfaab9cfae0adfc7f8efcb68fdb811618?d=identicon)[Zod](/maintainers/Zod)

---

Top Contributors

[![summerblue](https://avatars.githubusercontent.com/u/324764?v=4)](https://github.com/summerblue "summerblue (69 commits)")[![Catname](https://avatars.githubusercontent.com/u/26786959?v=4)](https://github.com/Catname "Catname (5 commits)")[![iiDestiny](https://avatars.githubusercontent.com/u/17637481?v=4)](https://github.com/iiDestiny "iiDestiny (5 commits)")[![sqrtqiezi](https://avatars.githubusercontent.com/u/7973501?v=4)](https://github.com/sqrtqiezi "sqrtqiezi (1 commits)")[![tim-hub](https://avatars.githubusercontent.com/u/2884320?v=4)](https://github.com/tim-hub "tim-hub (1 commits)")

---

Tags

laravelscaffoldlaravel5generators

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laralib/l5scaffold

Extend Laravel 5's generators scaffold.

31474.1k](/packages/laralib-l5scaffold)[summerblue/generator

Extend Laravel's generators scaffold.

34139.9k](/packages/summerblue-generator)[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)

PHPackages © 2026

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