laravel-idea/plugin

[Feature Request]: Provide form request parameters when calling Request::safe()

Opened this issue · 0 comments

Feature Description

I love how using $request->validated('some_field') shows hints about the parameter fields based on the FormRequest's rules() method.

I would love to see this extended to use with $request->safe()

$input = $request->safe();
$input->get('some_field'); // <--- no hints provided here currently.

The ValidatedInput object is considerably lighter weight and can more efficiently return request data than a FormRequest object.