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

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

969350794/generator
===================

Extend summerblue's generators scaffold.

v1.1.1(3mo ago)02MITPHPPHP &gt;=8.2.0

Since Jan 23Pushed 3mo agoCompare

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

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

Laravel Scaffold Generator
==========================

[](#laravel-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 12.x+.

Install
-------

[](#install)

### Step 1: Install Through Composer

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

```
composer require "969350794/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 Project --schema="name:string:index,description:text:nullable,subscriber\_count:integer:unsigned:default(0)"

This command will generate:

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

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

+ ./database/migrations/2026_01_23_092110_create_project_table.php
+ ./database/factories/ProjectFactory.php
+ ./database/seeders/ProjectSeeder.php
+ ./database/seeders/DatabaseSeeder.php (Updated)
+ ./app/Models/Project.php
+ ./app/Http/Requests/StoreProjectRequest.php
+ ./app/Http/Requests/UpdateProjectRequest.php
+ ./app/Services/ProjectService.php
+ ./app/Http/Controllers/ProjectController.php
+ ./app/Observers/ProjectObserver.php
+ ./routes/api.php (Updated)

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

```

Explain
-------

[](#explain)

Generate the following:

- Migration with singular table name
- Seed, add ModelFactory entry, and DatabaseSeeder entry (Seeder name without Table suffix)
- Model with HasFactory support
- Resource Controller using Service layer
- Separate Store{Model}Request and Update{Model}Request files
- Service layer with CRUD operations and pagination support
- Update routes file to register resource route
- Observer

Key Features
------------

[](#key-features)

1. **Service Layer**: Controllers now use Service layer instead of directly using Model, which provides better separation of concerns
2. **Pagination Support**: Service layer includes `getPaginated()` method for easy pagination
3. **Singular Naming**: Uses singular table names and file/class names for consistency
4. **Separate Request Files**: Generates separate Store{Model}Request and Update{Model}Request files
5. **No Unnecessary Files**: Doesn't generate Model.php, AppServiceProvider.php, views, or policies
6. **Factory Support**: Models include HasFactory support
7. **Type Declarations**: Controllers include type declarations for service properties, providing better type safety

Thanks to
---------

[](#thanks-to)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance79

Regular maintenance activity

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.5% 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

115d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/648ac5ee9e9c2cb8c8004142aeefa47195b556e3c7b0e59bf484b2ed1c4941d2?d=identicon)[969350794](/maintainers/969350794)

---

Top Contributors

[![summerblue](https://avatars.githubusercontent.com/u/324764?v=4)](https://github.com/summerblue "summerblue (76 commits)")[![969350794](https://avatars.githubusercontent.com/u/39760318?v=4)](https://github.com/969350794 "969350794 (8 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

laravelscaffoldgeneratorslaravel12

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/969350794-generator/health.svg)](https://phpackages.com/packages/969350794-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)[zachleigh/laravel-vue-generators

Generate Vue js files via artisan commands.

9039.6k](/packages/zachleigh-laravel-vue-generators)[webfactor/laravel-generators

Laravel generators for quickly creating entities.

3011.1k](/packages/webfactor-laravel-generators)[mckenziearts/laravel-command

A simple Laravel package to provide artisan new commands

321.2k](/packages/mckenziearts-laravel-command)

PHPackages © 2026

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