editor@linuxhint.com

Select Where And Where Condition

Problem

You need to chain multiple where conditions in Laravel.

Solution

You can definitely use Eloquent to accomplish this, or DB Query.

$this->where('email', $email)->where('password', $password) 

The expression above is returning a Builder object which you could use to append more where filters etc. To get the result you need:

$userRecord = $this->where('email', $email)->where('password', $password)->first();