laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Form request helpers

Open shomisha opened this issue 6 years ago • 7 comments

This pull request exposes a command for generating phpDocs for Laravel's FormRequests. The command supports generating docBlocks both inline, in the same files where class declarations are, and inline. It also supports parsing FormRequests from custom locations, not just the default one, as well as skipping specified form requests when generating phpDocs.

shomisha avatar Sep 20 '19 13:09 shomisha

@barryvdh @shomisha Any updates on this? I like the feature

lexdewilligen avatar Oct 31 '19 10:10 lexdewilligen

@lexdewilligen Not sure, @barryvdh is not responding. Not sure if the repo is still maintained, there are a lot of open PR's

shomisha avatar Nov 05 '19 12:11 shomisha

Sorry I don't really use form requests. Why do they need this generation?

barryvdh avatar Nov 05 '19 15:11 barryvdh

Haha for just that purpose. I like to use form requests as much as possible. Would be nice to auto generate docblocks for it.

lexdewilligen avatar Nov 05 '19 16:11 lexdewilligen

@barryvdh You can have autocomplete for the values you can get off of requests, and all of that based on validation rules. This functionality teaches the IDE what's available in a request inside a specific controller method that has a form request type hinted

shomisha avatar Nov 05 '19 16:11 shomisha

@barryvdh I fixed the code smells. If you want, approve the PR, or deny it, can you just resolve it, please?

misa-neopix avatar Feb 19 '20 11:02 misa-neopix

Any updates on this PR?

kyori19 avatar Jun 01 '21 05:06 kyori19