Answer the question
In order to leave comments, you need to log in
How to add a parameter to request before validation?
Goodnight. I came across this case:
$request->fingerprint = $gpg->getFingerprint($request->public_key);
$this->validate($data, [
'login' => 'required|unique:users|max:10',
'name' => 'required|max:10',
'public_key' => 'required',
'fingerprint' => 'required|unique:users'
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question