Thursday, March 2, 2017

Laravel select where exists query

I'm trying to create a query in laravel which will check if a username exists in the record where email equals $email. My table is called User.

I have checked the docs here: https://laravel.com/docs/5.4/queries and can't understand which query I need to use, can anyone help?



via JL9

Advertisement