public function getUserByColumnValue($column, $value) { $user = User::where($column, '=', $value)->first(); return $user; }