I'd like to check if user exists, if not create a new entry for their user name (a gmail address)
I wish to hash the email for security, however upon every check the bcrypt salt changes, so it is determined a new user.
$user = user::firstOrCreate(['email' => bcrypt($googleUser['email'])]);
How can I keep this secure and have firstOrCreate recognise a previous user?