PHPackages                             ecreeth/laravel-resource-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. ecreeth/laravel-resource-view

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

ecreeth/laravel-resource-view
=============================

Generates the structure of views of a resource, its model and its controller

73022PHP

Since Feb 12Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Comando Artisan para crear un recurso de vistas blade e agregarle un controlador y un modelo
============================================================================================

[](#comando-artisan-para-crear-un-recurso-de-vistas-blade-e-agregarle-un-controlador-y-un-modelo)

### Intalación

[](#intalación)

Para instalar este comando artisan, sólo debemos de ejecutar el siguiente comando:

`composer require ecreeth/laravel-resource-view`

### Utilización del comando

[](#utilización-del-comando)

El comando `php artisan make:resource-view categories` creará una carpeta llamada **categories**. Dentro de la misma también se crearán los siguientes archivos:

- **index.blade.php**
- **create.blade.php**
- **show.blade.php**
- **edit.blade.php**

### Cada una de las vistas blade tendrá el siguiente código

[](#cada-una-de-las-vistas-blade-tendrá-el-siguiente-código)

[![Texto alternativo](https://camo.githubusercontent.com/492b58c569a47e49b70d0aa4d84ba6d7f094fd61ab19598df4ac8b1b3dd4fc5b/68747470733a2f2f696d6167652e6962622e636f2f6d366e3659372f53637265656e5f53686f745f30325f31305f31385f61745f30365f30395f504d2e706e67 "Título alternativo")](https://camo.githubusercontent.com/492b58c569a47e49b70d0aa4d84ba6d7f094fd61ab19598df4ac8b1b3dd4fc5b/68747470733a2f2f696d6167652e6962622e636f2f6d366e3659372f53637265656e5f53686f745f30325f31305f31385f61745f30365f30395f504d2e706e67)

### Funcionalidades adicionales del comando

[](#funcionalidades-adicionales-del-comando)

**El comando `php artisan make:resource-view` acepta las siguientes opciones**

1. **-m**, **--model** Crea el modelo para el recurso
2. **-r**, **--resource** Crea el controlador del recurso
3. **-p**, **--path** Agrega las rutas para el recurso en el archivo de rutas web.php

Crear un nuevo recurso y además agregarle el controlador y el modelo.
---------------------------------------------------------------------

[](#crear-un-nuevo-recurso-y-además-agregarle-el-controlador-y-el-modelo)

Para agregar un nuevo recurso junto con su controlador y modelo, sólo tenemos que ejecutar el siguiente comando:

`php artisan make:resource-view categories --model --resource --path`

También podemos ejecutar `php artisan make:resource-view categories -m -r -p` y sería el mismo resultado.

El comando nos generará lo siguiente
------------------------------------

[](#el-comando-nos-generará-lo-siguiente)

[![Texto alternativo](https://camo.githubusercontent.com/c448dc3a319b44fc3b0313ff7f8820e3b216cf5f42fd5e1afe27823e4ffe5309/68747470733a2f2f696d6167652e6962622e636f2f6835516f666e2f53637265656e5f53686f745f30325f31305f31385f61745f30355f33355f504d2e706e67 "Título alternativo")](https://camo.githubusercontent.com/c448dc3a319b44fc3b0313ff7f8820e3b216cf5f42fd5e1afe27823e4ffe5309/68747470733a2f2f696d6167652e6962622e636f2f6835516f666e2f53637265656e5f53686f745f30325f31305f31385f61745f30355f33355f504d2e706e67)

Y además nos agregará a nuestro archivo de rutas las siguientes líneas de código:

`// Path resource for categories `

`Route::resource('categories', 'CategoryController'); `

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/00425fb1e8e584634f9305e84b698e3675f8ae39404e0e66078412bea127083c?d=identicon)[elcampesino1](/maintainers/elcampesino1)

---

Top Contributors

[![ecreeth](https://avatars.githubusercontent.com/u/20761166?v=4)](https://github.com/ecreeth "ecreeth (10 commits)")

---

Tags

artisan-commandlaravel

### Embed Badge

![Health badge](/badges/ecreeth-laravel-resource-view/health.svg)

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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