class MyFormRequest extends FormRequest
{
public function __construct()
{
parent::__construct();
here Request::all() returns empty array
}
protected function prepareForValidation()
{
here Request::all() returns array with my input
I need to get input in __construct. Google did not help me.
Pls, help me. How can I get input in __construct()?
I use Laravel 7.