Laravel custom authentication

Query user by credential

 

Reference: