Answer the question
In order to leave comments, you need to log in
How to write validation for a form?
There is validation, you need to display fields that did not pass the test
$errors = $request->validate([
'username' => 'required|string',
'password' => 'required|string'
]);
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