Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
### Fixed

- Fix inconsistent url in `authentication_test.stub` (issue #8)
- Route stub generated a route with the controller action `destroy` instead of `delete` (issue #9)

## 0.3.0

Expand Down
4 changes: 2 additions & 2 deletions resources/templates/route.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use App\Http\Controllers\Api\$MODEL_NAME$Controller as Controller;
Route::prefix('$PLURAL_SNAKE_CASED_MODEL_NAME$')->middleware('auth:api')->group(function () {
Route::get('', Controller::class . '@index');
Route::get('/{id}', Controller::class . '@show');
Route::delete('/{id}', Controller::class . '@destroy');
Route::delete('/{id}', Controller::class . '@delete');
Route::post('', Controller::class . '@create');
Route::patch('/{id}', Controller::class . '@update');
});
});