Answer the question
In order to leave comments, you need to log in
How can you check if a value exists in a particular column using standard methods?
Hello. Is it possible to check, as standard, whether a particular value exists in a particular table and database column? Or just counts like this:
$isExists = User::where('email', $request->email)->count()
if (!$isExists) {
// do something
}
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