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