PHPackages                             tediscript/laravel-view-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. [Templating &amp; Views](/categories/templating)
4. /
5. tediscript/laravel-view-generator

ActiveLibrary[Templating &amp; Views](/categories/templating)

tediscript/laravel-view-generator
=================================

Laravel module to generate view from artisan command

v1.0.0(4y ago)113MITPHPPHP ^7.3|^8.0

Since Jun 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tediscript/laravel-view-generator)[ Packagist](https://packagist.org/packages/tediscript/laravel-view-generator)[ RSS](/packages/tediscript-laravel-view-generator/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

laravel-view-generator
======================

[](#laravel-view-generator)

Laravel module to generate view from artisan command

Installation via composer
-------------------------

[](#installation-via-composer)

Run command:

```
composer require --dev tediscript/laravel-view-generator

```

Or add this script to your `composer.json` and run `composer update`

```
    "require-dev": {
        "tediscript/laravel-view-generator": "^1.0.0"
    }

```

Usage
-----

[](#usage)

Just like you create model via php artisan.

### Make View Command

[](#make-view-command)

```
php artisan make:view view-name

```

It will generate file `resources/views/view-name.blade.php` using `plain.stub` template.

```
php artisan make:view schools.edit --model=School --layout=edit

```

It will generate file `resources/views/schools/edit.blade.php` using `edit.stub` template.

- argument `schools.edit` is the path name of blade file (just like view name in render)
- option `--model=School` is the model name. It is optional. Default model name is `Item`
- option `--layout=edit` is used to specify the view stub file. The option are `create`, `edit`, `index`, `plain`, `show`. The default value is `plain`

### Create your own layout template

[](#create-your-own-layout-template)

You can create your own stub file inside folder `resources/stubs`. For example create file `resources/stubs/welcome.stub` then you can call artisan command:

```
php artisan make:view awesome --layout=welcome

```

It will generate file `resources/views/awesome.blade.php` using `welcome.stub` layout.

The supported variable to render are:

- `{{ model }}` we get it from option `--model`
- `{{ pluralModel }}` we get it from pluralize of `model`
- `{{ resourceName }}` we get it from lower case of `pluralModel`
- `{{ instanceModel }}` we get it from camel case of `model`
- `{{ instanceCollectionModel }}` we get it from pluralize of `instanceModel`

Thats it.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

4

Last Release

1785d ago

Major Versions

v0.1.2 → v1.0.02021-06-23

### Community

Maintainers

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

---

Top Contributors

[![tediscript](https://avatars.githubusercontent.com/u/359976?v=4)](https://github.com/tediscript "tediscript (23 commits)")

---

Tags

laravelgeneratorviewmodule

### Embed Badge

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

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

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[infyomlabs/generator-builder

InfyOm Laravel Generator GUI Builder

132435.7k](/packages/infyomlabs-generator-builder)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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