laravel-request-docs
laravel-request-docs copied to clipboard
Read and Identity Enums
Enums are allowed as a query parameter - it would be great if it could read this and identify the possible routes based on this.
Moreover, generally identifying the data type of the route param would be great.
For example; for uuids:
/users/{record} => record: string
For autonumber ids:
/users/{record} => record: integer
Where model is an enum, record is string:
/{model}/{record} => model: enum [users, projects, tasks, quotes]
Probably displayed as a table, such as:
Query Params:
Field | Type | Data
===================================
model | enum | users, projects, tasks, quotes
-----------------------------------
record | string |
-----------------------------------
Could add
Hmm I tried but this can't be added