ingenious/tdd-generator

A simple generator for speeding up the tdd workflow

Maintainers

Package info

github.com/Gimcrack/tdd-generator

Type:package

pkg:composer/ingenious/tdd-generator

Statistics

Installs: 120

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v1.5.2 2018-07-26 17:59 UTC

This package is auto-updated.

Last update: 2026-03-21 01:29:54 UTC


README

Laravel TDD Generator Helper

Description

  • Adds Route::apiResource routes to your specified routes file.
  • Generates stubs for:
    • Controller
    • Events
    • Factory
    • Migration
    • Model
    • Requests
    • Feature Test
    • Unit Test

Usage

php artisan tdd:generate 
    { model : The new model name }
    { routes? : The routes file to use }
    { prefix? : The route name prefix to use e.g. admin }
    { --force : Overwrite existing files without confirmation }

To generate stubs for the Group model and add the routes to the api-admin.php routes file, you would use the following:

php artisan tdd:generate Group api-admin.php