PHPackages                             tdebatty/laravel-resource-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. tdebatty/laravel-resource-generator

ActiveLibrary

tdebatty/laravel-resource-generator
===================================

Source code generator for laravel resources

8.0.0(2y ago)45.6k↓100%11MITPHPCI failing

Since Jul 16Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (11)Used By (1)

Laravel Resource Generator
==========================

[](#laravel-resource-generator)

A source code generator for Laravel resources.

In Laravel, you can create a resource controller using the command `php artisan make:controller PostController --resource`. But:

- the controller contains only empty methods
- you have to manually add request validation
- you have to write all your views

With this plugin, you immediately get working code:

- a fully functional controller with request validation
- basic views to list, create, modify and delete your resource

Installation
------------

[](#installation)

```
$ composer require --dev tdebatty/laravel-resource-generator

```

Example
-------

[](#example)

```
$ php artisan resource:make Post -i fa
Generate migration and model...
Generate routes...
Generate views...
Generate controller...
Done!
You may now fill the migration file
And then run php artisan migrate
Your resources will be available at http://127.0.0.1:8000/app/posts

```

The default controller and views assume resources have a *name* field. You have to add this field manually to your migration file (and other fields according to your needs):

```
$ nano database/migrations/*_create_posts_table.php

```

You can now migrate and check the result:

```
$ php artisan migrate
$ php artisan serve

```

[![](./doc/index.png)](./doc/index.png)

[![](./doc/show.png)](./doc/show.png)

[![](./doc/edit.png)](./doc/edit.png)

Compatibility
-------------

[](#compatibility)

Currently generates code for Laravel 5.6 (Bootstrap 4). The generated code is vanilla Laravel code (i.e. views use Blade syntax with no additional libraries or dependencies).

The generator can also add icons using following icon sets:

- Font Awesome 5 : `php artisan resource:make Model -i fa`
- Font Awesome 4 : `php artisan resource:make Model -i fa4`

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 75.9% 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 ~201 days

Recently: every ~342 days

Total

10

Last Release

1047d ago

Major Versions

0.0.3 → 6.0.12019-10-02

6.2.0 → 8.0.02023-06-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c315a5fa6bd564f98127e90046ff629dad5a22cd509cc53d07f5858c85b08fc?d=identicon)[tdebatty](/maintainers/tdebatty)

---

Top Contributors

[![tdebatty](https://avatars.githubusercontent.com/u/872972?v=4)](https://github.com/tdebatty "tdebatty (22 commits)")[![t-cylab](https://avatars.githubusercontent.com/u/180541903?v=4)](https://github.com/t-cylab "t-cylab (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tdebatty-laravel-resource-generator/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[sammyjo20/lasso

Lasso - Asset wrangling for Laravel made simple.

355347.9k](/packages/sammyjo20-lasso)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

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

PHPackages © 2026

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