ingenious/tdd-generator

A simple generator for speeding up the tdd workflow

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

This package is auto-updated.

Last update: 2024-10-20 22:35:45 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