SyntaxFix
Write A Post
Hire A Developer
Questions
Here is shortest way of doing it.
$userRecord = Model::where(['email'=>$email, 'password'=>$password])->first();