PHPackages                             bencomeau/artisan-make-view - 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. bencomeau/artisan-make-view

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

bencomeau/artisan-make-view
===========================

Create views, including "resource" views, using console commands.

v1.1(8y ago)36781[1 issues](https://github.com/bencomeau/artisan-make-view/issues)MITPHPPHP &gt;=5.6.4

Since Mar 16Pushed 8y agoCompare

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

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Laravel View Generator
======================

[](#laravel-view-generator)

Introduction
------------

[](#introduction)

> Quickly create views and view resources from the Artisan console, saving a surprising amount of time.

Code Samples
------------

[](#code-samples)

Creating views is as easy as:

```
php artisan make:view user  // creates --> index, create, show, edit views in the resources/views/user directory

php artisan make:view user.index  // creates --> resources/views/user/index.blade.php

```

Using something other than `blade` templates?

```
php artisan make:view user.index -e twig  // creates --> resources/views/index.twig

```

Want to use a view path you specified in `config/view.php`?

```
// If your config/view file looks like this:
'paths' => [
    resource_path('views'),
    resource_path('my-custom-view-folder')
],

// Then just pass the key you want to use, like this:
php artisan make:view user.index -p 1  // creates --> resources/my-custom-view-folder/index.blade.php

```

Install
-------

[](#install)

To get started, use composer to require this package:

```
composer require bencomeau/artisan-make-view --dev

```

Then simply `register` the package's Service Provider in your `app/Providers/AppServiceProvider.php` file:

> Note: Laravel `5.5` and above uses Package Auto-Discovery; if you are using Laravel `>= 5.5` it is not necessary to manually add the service provider as shown below.

```
public function register()
{
    if ($this->app->environment('local')) {
        $this->app->register(\BenComeau\ArtisanMakeView\ArtisanMakeViewServiceProvider::class);
    }
}

```

And you're ready to quickly generate views!

Usage
-----

[](#usage)

To list all command options

```
php artisan make:view --help

```

Make a single view by name, in `dot` notation

```
php artisan make:view user.index

```

Make a view `resource` by passing just the name of the `resource`

```
php artisan make:view user -r

```

Make a view with a custom extension

```
php artisan make:view user.index -e twig

```

Make a view and store it in another directory *Note: `-p 1` refers to the value of array key of `1` in your `config('view.paths')` setting.*

```
php artisan make:view user.index -p 1

```

Combine multiple options to fully-customize the view(s) being created *Note: this will create all resource views in your custom directory, with the `twig` extension.*

```
php artisan make:view user -r -p 1 -e twig

```

License
-------

[](#license)

Artisan Make View is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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 ~175 days

Total

2

Last Release

3165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b38571f413e0caddb5301b5184fc3e190a6fc440c41c255a4dc9381a641ce51?d=identicon)[bencomeau](/maintainers/bencomeau)

---

Tags

artisan-commandlaravellaravel-packagelaravelartisan

### Embed Badge

![Health badge](/badges/bencomeau-artisan-make-view/health.svg)

```
[![Health](https://phpackages.com/badges/bencomeau-artisan-make-view/health.svg)](https://phpackages.com/packages/bencomeau-artisan-make-view)
```

###  Alternatives

[evercode1/view-maker

ViewMaker for Laravel 5.2 Artisan Command

734.2k1](/packages/evercode1-view-maker)[san-kumar/laravel-crud

Laravel CRUD generator: Generate CRUD for any db table with the crud:generate command.

564.4k](/packages/san-kumar-laravel-crud)

PHPackages © 2026

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