PHPackages                             laraviet/l5scaffold - 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. laraviet/l5scaffold

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

laraviet/l5scaffold
===================

Extend Laravel 5's generators scaffold.

2.0.3(8y ago)74761MITJavaScriptPHP &gt;=5.4.0

Since Apr 23Pushed 8y ago3 watchersCompare

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

READMEChangelogDependencies (1)Versions (14)Used By (0)

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

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

This is a scaffold generator for Laravel 5.

NOTE
----

[](#note)

For Laravel 5.2 or below, please use version [1.0.8](https://github.com/laraviet/l5scaffold/tree/1.0.8)

Usage
-----

[](#usage)

### Step 1: Install Through Composer

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

```
composer require 'laraviet/l5scaffold' --dev

```

### Step 2: Add the Service Provider

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

Open `config/app.php` and, to your **providers** array at the bottom, add:

```
"Laraviet\L5scaffold\GeneratorsServiceProvider"

```

### 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)

```
php artisan make:scaffold Tweet --schema="title:string:default('Tweet #1'), body:text"

```

This command will generate:

```
app/Tweet.php
app/Http/Requests/TweetRequest.php
app/Http/Controllers/Admin/TweetController.php
app/Libs/ErrorDisplay.php
app/Libs/ValueHelper.php
database/migrations/2015_04_23_234422_create_tweets_table.php
database/seeds/TweetTableSeeder.php
resources/views/layout/admin.blade.php
resources/views/layout/error_display/all_errors.blade.php
resources/views/layout/error_display/field_errors.blade.php
resources/views/admin/tweets/index.blade.php
resources/views/admin/tweets/show.blade.php
resources/views/admin/tweets/edit.blade.php
resources/views/admintweets/create.blade.php

```

And don't forget to run:

```
php artisan migrate

```

### Step 4: Add Validation Rules!

[](#step-4-add-validation-rules)

Open `app/Http/Requests/TweetRequest.php` and add validation rules at rules() method

```
public function rules()
{
    return [
    	"title" => "required",
    	"body" => "required"
    ];
}

```

### Step 5: Customize How Validation Error Message Display!

[](#step-5-customize-how-validation-error-message-display)

Open `config/error_display.php` and update config:

```
"box" => false, //Display all validation error message in the top of page as box
"line" => true, //Display error message line by line

```

Views location for error message: `resources/views/layout/error_display/`

Scaffold Screenshot
-------------------

[](#scaffold-screenshot)

[![image](https://camo.githubusercontent.com/499a5fc8306e23fb38f00d4a5dbba78d02e0f907671a19f1ffd3b13052c97503/687474703a2f2f6935392e74696e797069632e636f6d2f326d72386f626b2e706e67)](https://camo.githubusercontent.com/499a5fc8306e23fb38f00d4a5dbba78d02e0f907671a19f1ffd3b13052c97503/687474703a2f2f6935392e74696e797069632e636f6d2f326d72386f626b2e706e67)

[![image](https://camo.githubusercontent.com/e3fa6860f29effddb86a3fb4e8e8b1d2ea090a20c88d087a9f2be3ffae608517/687474703a2f2f6935372e74696e797069632e636f6d2f326471716232722e706e67)](https://camo.githubusercontent.com/e3fa6860f29effddb86a3fb4e8e8b1d2ea090a20c88d087a9f2be3ffae608517/687474703a2f2f6935372e74696e797069632e636f6d2f326471716232722e706e67)

[![image](https://camo.githubusercontent.com/15e49a8d1778980ee0a24d058a3e76e40fb942e5587edecc6efc9d1b0bf5cb1d/687474703a2f2f6936322e74696e797069632e636f6d2f3330727576646b2e706e67)](https://camo.githubusercontent.com/15e49a8d1778980ee0a24d058a3e76e40fb942e5587edecc6efc9d1b0bf5cb1d/687474703a2f2f6936322e74696e797069632e636f6d2f3330727576646b2e706e67)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 59.3% 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 ~84 days

Recently: every ~231 days

Total

13

Last Release

3038d ago

Major Versions

1.0.8 → 2.0.02018-01-23

### Community

Maintainers

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

---

Top Contributors

[![fernandobritofl](https://avatars.githubusercontent.com/u/699879?v=4)](https://github.com/fernandobritofl "fernandobritofl (16 commits)")[![laraviet](https://avatars.githubusercontent.com/u/10137094?v=4)](https://github.com/laraviet "laraviet (6 commits)")[![alnutile](https://avatars.githubusercontent.com/u/365385?v=4)](https://github.com/alnutile "alnutile (2 commits)")[![DeftNerd](https://avatars.githubusercontent.com/u/3002275?v=4)](https://github.com/DeftNerd "DeftNerd (1 commits)")[![itsazzad](https://avatars.githubusercontent.com/u/54909?v=4)](https://github.com/itsazzad "itsazzad (1 commits)")[![webbtj](https://avatars.githubusercontent.com/u/865814?v=4)](https://github.com/webbtj "webbtj (1 commits)")

---

Tags

laravelscaffoldlaravel5generators

### Embed Badge

![Health badge](/badges/laraviet-l5scaffold/health.svg)

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

###  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)[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)
