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

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

janareit/l5scaffold
===================

Extend Laravel 5's generators scaffold.

1.1.0(10y ago)3131MITPHPPHP &gt;=5.4.0

Since Apr 23Pushed 10y ago1 watchersCompare

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

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

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

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

This is a scaffold generator for Laravel 5.0.x.

This generator has less advanced features than my other forked generators set at . Check out both of them to see whic one better suits your project needs.

Usage
-----

[](#usage)

### Step 1: Install Through Composer

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

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

```

### Step 2: Add the Service Provider

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

This package scaffolds views using `laracasts/flash` package, so you need add also this to providers.

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

```
'janareit\L5scaffold\GeneratorsServiceProvider',
'Laracasts\Flash\FlashServiceProvider'

```

Add a facade alias to the same file at the bottom:

```
'Flash' => 'Laracasts\Flash\Flash'

```

### Step 3: Run Artisan Command

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

```
php artisan vendor:publish

```

### Step 4: Edit scaffolding config

[](#step-4-edit-scaffolding-config)

Open `config/scaffold.php` and edit it according to your needs and wishes

### Step 5: Run Artisan!

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

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

Command example
---------------

[](#command-example)

(--prefix option is OPTIONAL. Running command without it will simply skip prefix in folders)

```
php artisan make:scaffold Post --schema="title:string:default('Main title'), body:text" --prefix=Blog

```

This command will generate:

```
app/Repositories/Blog/Post.php
app/Http/Controllers/Blog/PostController.php
database/migrations/2015_06_03_234422_create_posts_table.php
database/seeds/Blog/PostTableSeeder.php
resources/views/blog/posts/index.blade.php
resources/views/blog/posts/show.blade.php
resources/views/blog/posts/edit.blade.php
resources/views/blog/posts/create.blade.php

```

And don't forget to run:

```
php artisan migrate

```

### Step 6: Add route

[](#step-6-add-route)

Open `routes.php` and add route that you generated.

For example:

```
Route::resource('blog/posts', 'Blog\PostController');

```

### Step 7: Add Route-Model binding

[](#step-7-add-route-model-binding)

Add Route-Model binding and "use" clause to `RouteServiceProvider.php`

For example:

```
use App\Repositories\Blog\Post;

public function boot(Router $router)
	{
		parent::boot($router);

        $router->bind('posts', function($id) {
            return Post::findOrFail($id);
        });

	}

```

Scaffold
--------

[](#scaffold)

[![image](https://camo.githubusercontent.com/5257829332a15166a5726b765f6ccaf2006d361e632b1c3ff0b0e21182ea7f4a/687474703a2f2f6936322e74696e797069632e636f6d2f326e686d3578752e706e67)](https://camo.githubusercontent.com/5257829332a15166a5726b765f6ccaf2006d361e632b1c3ff0b0e21182ea7f4a/687474703a2f2f6936322e74696e797069632e636f6d2f326e686d3578752e706e67)[![image](https://camo.githubusercontent.com/7de99d89764ec5ac69f2b98681e71fc2376dc0ef194a1ed346ba59d8b93c4cba/687474703a2f2f6935372e74696e797069632e636f6d2f6b3530366d762e706e67)](https://camo.githubusercontent.com/7de99d89764ec5ac69f2b98681e71fc2376dc0ef194a1ed346ba59d8b93c4cba/687474703a2f2f6935372e74696e797069632e636f6d2f6b3530366d762e706e67)[![image](https://camo.githubusercontent.com/ce911a9c5f66ba7228008715162651373785b4d6aeedcf0b9062bc94270783f8/687474703a2f2f6936322e74696e797069632e636f6d2f3269766935386a2e706e67)](https://camo.githubusercontent.com/ce911a9c5f66ba7228008715162651373785b4d6aeedcf0b9062bc94270783f8/687474703a2f2f6936322e74696e797069632e636f6d2f3269766935386a2e706e67)

Thanks for all previous contributors but since fixing bugs and adding features according to my own need was very slow I forked this repo. Mainly for my own project needs:)

Love and greetings to all Laravel 5 fellows ot there:)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 54.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 ~8 days

Total

6

Last Release

4002d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6eb3a5d35bf63f7016eaeec3063c0c7b75806cbc31ed841005563cca08e1a705?d=identicon)[janareit](/maintainers/janareit)

---

Top Contributors

[![fernandobritofl](https://avatars.githubusercontent.com/u/699879?v=4)](https://github.com/fernandobritofl "fernandobritofl (12 commits)")[![j4n4r](https://avatars.githubusercontent.com/u/9429173?v=4)](https://github.com/j4n4r "j4n4r (8 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/janareit-l5scaffold/health.svg)

```
[![Health](https://phpackages.com/badges/janareit-l5scaffold/health.svg)](https://phpackages.com/packages/janareit-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)

PHPackages © 2026

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