ingenious / tdd-generator
A simple generator for speeding up the tdd workflow
Installs: 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
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