SHARE
TWEET

php code

selimppc Jun 3rd, 2020 1,077 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     private function userColumnExists($column, $value, $user_id = "")
  2.     {
  3.         if ($value) {
  4.             $userColumnExists = User::where($column, $value);
  5.             if($user_id) $userColumnExists = $userColumnExists->where("id", "!=", $user_id);
  6.             if($userColumnExists->count() >=1 ) return true;
  7.         }
  8.         return false;
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top