SyntaxFix
Write A Post
Hire A Developer
Questions
I think below way is the simplest way to achieving same :
$user = User::where('email', '=', $request->input('email'))->first(); if ($user) { // user doesn't exist! }