laravel / folio

Page based routing for Laravel.
MIT License
568 stars 46 forks source link

[1.x] Add examples to `make:folio` prompt #63

Closed jessarcher closed 1 year ago

jessarcher commented 1 year ago

This PR updates the make:folio command to include name examples when prompting for the missing "name" argument:

image

The goal of these placeholders is typically to prevent a trip to the docs for those that want to use conventional naming (single vs. plural, suffixes, etc.)

Unlike other make:* commands, there are some nuances with the name argument for make:folio command, so I chose to include two examples that hopefully demonstrate the "special" behaviour of index routes, nesting, and route model binding. Hopefully, users don't think they can enter comma-separated page names.