Answer the question
In order to leave comments, you need to log in
Is it possible to check a regular expression in a method?
Good afternoon.
Is it possible to check the data coming from the form with a regular expression in the method?
For example:
if ($request->has('email'))
$email = $request->input('email');
Answer the question
In order to leave comments, you need to log in
What prevents you from making a Request class with validation or calling a validator right here?
Not to mention the most common validation methods in php , if you don’t look at the Laravel doc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question