laravel-shift / blueprint

A code generation tool for Laravel developers.
MIT License
2.86k stars 273 forks source link

Plural route naming convention as default to match Laravel docs #662

Closed bertheyman closed 8 months ago

bertheyman commented 9 months ago

Synopsis:

This debate and subsequent PR allowed for routes names to be configurable: singular or plural.

The Blueprint default differs from the Laravel docs:

Blueprint

Route::resource('photo', PhotoController::class);

Laravel docs

Route::resource('photos', PhotoController::class);

Proposed Syntax:


// config/blueprint.php

'singular_routes' => null,

Expected Behavior:

Have plural as the default option to match the docs and promote Laravel conventions. I realise there is no 100% official naming conventions, but I believe sticking to the docs will help promote one standard.

jasonmccreary commented 9 months ago

I agree that the plural/singular is a bit off. If you want to open a PR to correct some of this, I am glad to revisit it.