laravel-apidoc-generator icon indicating copy to clipboard operation
laravel-apidoc-generator copied to clipboard

Automatically extract the parameters from FormRequest

Open unipenlabs opened this issue 4 years ago • 3 comments

Hello,

I used laravel-apidoc-generator v2 and it extracted the parameters from:

/**
 * Get the validation rules that apply to the request.
 *
 * @return array
 */
public function rules()
{
    return [
        'email' => 'required|email',
        'password' => 'required',
    ];
}

I switched to version 4.4 and the parameters are missing in the documentation. Any help is very appreciated! Thanks!

unipenlabs avatar Jun 01 '20 12:06 unipenlabs

the same problem

YogiLai avatar Jul 10 '20 01:07 YogiLai

3.0.0版已经移除相关功能,不再支持,改成@bodyParam see => https://github.com/mpociot/laravel-apidoc-generator/blob/master/CHANGELOG.md#30---sunday-21-october-2018 see => https://github.com/mpociot/laravel-apidoc-generator/issues/343

YogiLai avatar Jul 10 '20 12:07 YogiLai

https://scribe.readthedocs.io/en/latest/whats-new.html#formrequest-support-is-back

shalvah avatar Jul 14 '20 08:07 shalvah