Laravel TDD Generator Helper
- Adds
Route::apiResource
routes to your specified routes file. - Generates stubs for:
- Controller
- Events
- Factory
- Migration
- Model
- Requests
- Feature Test
- Unit Test
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